From 6c8f3fa8616381ea2957a2a00834a490407b9b2a Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Fri, 31 Oct 2014 15:25:42 +0100 Subject: [PATCH] VideoConfig: Add StereoMode enumeration. --- Source/Core/VideoBackends/OGL/Render.cpp | 4 ++-- 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 {