diff options
| author | Jules Blok <jules.blok@gmail.com> | 2014-10-31 15:25:42 +0100 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2014-11-23 14:27:39 +0100 |
| commit | 6c8f3fa8616381ea2957a2a00834a490407b9b2a (patch) | |
| tree | 536b989260bbea1712872ec4bc1b87e519dc6400 /Source | |
| parent | 0eb0c47eba57366bf80d7c69b3a07b5924102c1c (diff) | |
VideoConfig: Add StereoMode enumeration.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/Render.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.h | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp index bba030f209..484232f3cc 100644 --- a/Source/Core/VideoBackends/OGL/Render.cpp +++ b/Source/Core/VideoBackends/OGL/Render.cpp @@ -1514,7 +1514,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co sourceRc.right -= fbStride - fbWidth; - if (g_ActiveConfig.iStereoMode == 1) + if (g_ActiveConfig.iStereoMode == STEREO_SBS) { // Resize target to half its original size int width = drawRc.GetWidth(); @@ -1544,7 +1544,7 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co // for msaa mode, we must resolve the efb content to non-msaa GLuint tex = FramebufferManager::ResolveAndGetRenderTarget(rc); - if (g_ActiveConfig.iStereoMode == 1) + if (g_ActiveConfig.iStereoMode == STEREO_SBS) { // Resize target to half its original size int width = flipped_trc.GetWidth(); diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index a44b0a78a2..2cd83e64c5 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -44,6 +44,12 @@ enum EFBScale SCALE_4X, }; +enum StereoMode +{ + STEREO_OFF = 0, + STEREO_SBS +}; + // NEVER inherit from this class. struct VideoConfig final { |
