diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-07-26 12:45:10 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-07-26 12:45:10 +0200 |
| commit | bd9953d97ef45e165d0fb555efa29957c3bb8e82 (patch) | |
| tree | e1d5f06f340ed5279453e7d9134974c493fe39b5 /Source/Core/VideoCommon/FramebufferManagerBase.cpp | |
| parent | 4b3d57957333288a16451f23db28af60d34b121f (diff) | |
Remove the 3D Vision hack.
The hack was needed because the Nvidia 3D Vision heuristics are documented to only support surfaces that are the same size as the backbuffer. This would be the case if you enabled the hack and selected the "Auto (Window Size)" internal resolution.
However, on recent drivers the same effect is achieved by selecting the "Auto (Multiple)" internal resolution. Therefore the hack is no longer required.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManagerBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManagerBase.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManagerBase.cpp b/Source/Core/VideoCommon/FramebufferManagerBase.cpp index 6e26dea190..d3dd0b92fd 100644 --- a/Source/Core/VideoCommon/FramebufferManagerBase.cpp +++ b/Source/Core/VideoCommon/FramebufferManagerBase.cpp @@ -236,15 +236,7 @@ int FramebufferManagerBase::ScaleToVirtualXfbWidth(int x, unsigned int backbuffe if (g_ActiveConfig.RealXFBEnabled()) return x; - if (g_ActiveConfig.b3DVision) - { - // This works, yet the version in the else doesn't. No idea why. - return x * (int)backbuffer_width / (int)FramebufferManagerBase::LastXfbWidth(); - } - else - { - return x * (int)Renderer::GetTargetRectangle().GetWidth() / (int)FramebufferManagerBase::LastXfbWidth(); - } + return x * (int)Renderer::GetTargetRectangle().GetWidth() / (int)FramebufferManagerBase::LastXfbWidth(); } int FramebufferManagerBase::ScaleToVirtualXfbHeight(int y, unsigned int backbuffer_height) @@ -252,13 +244,5 @@ int FramebufferManagerBase::ScaleToVirtualXfbHeight(int y, unsigned int backbuff if (g_ActiveConfig.RealXFBEnabled()) return y; - if (g_ActiveConfig.b3DVision) - { - // This works, yet the version in the else doesn't. No idea why. - return y * (int)backbuffer_height / (int)FramebufferManagerBase::LastXfbHeight(); - } - else - { - return y * (int)Renderer::GetTargetRectangle().GetHeight() / (int)FramebufferManagerBase::LastXfbHeight(); - } + return y * (int)Renderer::GetTargetRectangle().GetHeight() / (int)FramebufferManagerBase::LastXfbHeight(); } |
