summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLConfig.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-02-14 20:17:22 +0100
committerGitHub <noreply@github.com>2023-02-14 20:17:22 +0100
commite1d3237dbd3d76100955a223ff1fca0a52243a3e (patch)
treea8d84a61c828295812b7e8e29f665b24cd5dc263 /Source/Core/VideoBackends/OGL/OGLConfig.cpp
parent22ed0842098080e55773b00ebcce4c302bf8160e (diff)
parentf25a0b43b6d3b17ca0d86bde19b646b1fc4a91a4 (diff)
Merge pull request #11342 from TellowKrinkle/GLLayerMac
VideoCommon: Fix stereoscopic 3D on OpenGL < 4.3 (macOS)
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLConfig.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLConfig.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLConfig.cpp b/Source/Core/VideoBackends/OGL/OGLConfig.cpp
index 10722e0526..ab31592bd2 100644
--- a/Source/Core/VideoBackends/OGL/OGLConfig.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLConfig.cpp
@@ -528,6 +528,10 @@ bool PopulateConfig(GLContext* m_main_gl_context)
glEnable(GL_PROGRAM_POINT_SIZE);
}
+ // Supported by all GS-supporting ES and 4.3+
+ g_Config.backend_info.bSupportsGLLayerInFS = g_Config.backend_info.bSupportsGeometryShaders &&
+ g_ogl_config.eSupportedGLSLVersion >= Glsl430;
+
g_Config.backend_info.bSupportsBBox = g_Config.backend_info.bSupportsFragmentStoresAndAtomics;
// Either method can do early-z tests. See PixelShaderGen for details.