From 910d3cdbb4fcec62d855838343d2b4bb9413b4b2 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 2 Mar 2021 15:17:21 +1000 Subject: [PATCH] GPU/OpenGL: Make GL4.3 a prereq for binding layout This was incorrectly checking for GL4.2, but explicit uniform/attribute location isn't supported until GL4.3 without the extension. --- src/core/shadergen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/shadergen.cpp b/src/core/shadergen.cpp index 5f6d938c7..641126773 100644 --- a/src/core/shadergen.cpp +++ b/src/core/shadergen.cpp @@ -23,7 +23,7 @@ ShaderGen::~ShaderGen() = default; bool ShaderGen::UseGLSLBindingLayout() { - return (GLAD_GL_ES_VERSION_3_1 || GLAD_GL_VERSION_4_2 || + return (GLAD_GL_ES_VERSION_3_1 || GLAD_GL_VERSION_4_3 || (GLAD_GL_ARB_explicit_attrib_location && GLAD_GL_ARB_explicit_uniform_location && GLAD_GL_ARB_shading_language_420pack)); }