diff options
| author | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2010-05-19 03:15:36 +0000 |
|---|---|---|
| committer | Rodolfo Osvaldo Bogado <rodolfoosvaldobogado@gmail.com> | 2010-05-19 03:15:36 +0000 |
| commit | 2c7a08fc6198a2b44c78a0fca9903946da501a80 (patch) | |
| tree | 5e071879a036839a2aed9d1e59491923f9e6344a /Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp | |
| parent | 7947543d98327a082d6f7006339b265882c40801 (diff) | |
after a good commit lets make some experiments:
implemented fixed efb scale to improve alignment and discard some error caused by incorrect scale.
make both plugins work similar. this must improve opengl image quality a lot.
also implemented dynamic resizing in opengl, this way the resolution math the windows resolution on resize.
this is highly experimental so please test a lot.
implemented shader dumping on error thinking in future experiments with shaders.
enjoy :)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5458 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp index a92c1584df..35245c55ca 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp @@ -268,9 +268,9 @@ TargetRectangle FramebufferManager::ConvertEFBRectangle(const EFBRectangle& rc) float XScale = Renderer::GetTargetScaleX(); float YScale = Renderer::GetTargetScaleY(); result.left = rc.left * XScale; - result.top = Renderer::GetTargetHeight() - (rc.top * YScale); + result.top = ((EFB_HEIGHT - rc.top) * YScale); result.right = rc.right * XScale ; - result.bottom = Renderer::GetTargetHeight() - (rc.bottom * YScale); + result.bottom = ((EFB_HEIGHT - rc.bottom) * YScale); return result; } @@ -411,6 +411,10 @@ void FramebufferManager::copyToVirtualXFB(u32 xfbAddr, u32 fbWidth, u32 fbHeight newVirt.xfbWidth = fbWidth; newVirt.xfbHeight = fbHeight; + newVirt.xfbSource.srcAddr = xfbAddr; + newVirt.xfbSource.srcWidth = fbWidth; + newVirt.xfbSource.srcHeight = fbHeight; + newVirt.xfbSource.texture = xfbTexture; newVirt.xfbSource.texWidth = m_targetWidth; newVirt.xfbSource.texHeight = m_targetHeight; |
