From 834f8f7b5cb9b5d9e437c7a3935bfdcc236c422a Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 28 May 2023 20:59:02 -0500 Subject: VideoBackends: add support to allow rendering to multiple output textures --- Source/Core/VideoBackends/OGL/OGLConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/Core/VideoBackends/OGL/OGLConfig.cpp') diff --git a/Source/Core/VideoBackends/OGL/OGLConfig.cpp b/Source/Core/VideoBackends/OGL/OGLConfig.cpp index e5e1bff83f..95998b836b 100644 --- a/Source/Core/VideoBackends/OGL/OGLConfig.cpp +++ b/Source/Core/VideoBackends/OGL/OGLConfig.cpp @@ -480,6 +480,8 @@ bool PopulateConfig(GLContext* m_main_gl_context) else if (GLExtensions::Version() == 330) { g_ogl_config.eSupportedGLSLVersion = Glsl330; + g_ogl_config.bSupportsExplicitLayoutInShader = + GLExtensions::Supports("GL_ARB_explicit_attrib_location"); } else if (GLExtensions::Version() >= 430) { @@ -495,6 +497,7 @@ bool PopulateConfig(GLContext* m_main_gl_context) g_ogl_config.bSupportsTextureStorage = true; g_ogl_config.SupportedMultisampleTexStorage = MultisampleTexStorageType::TexStorageCore; g_ogl_config.bSupportsImageLoadStore = true; + g_ogl_config.bSupportsExplicitLayoutInShader = true; g_Config.backend_info.bSupportsSSAA = true; g_Config.backend_info.bSupportsSettingObjectNames = true; -- cgit v1.2.3