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.
This commit is contained in:
@@ -23,7 +23,7 @@ ShaderGen::~ShaderGen() = default;
|
|||||||
|
|
||||||
bool ShaderGen::UseGLSLBindingLayout()
|
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_explicit_attrib_location && GLAD_GL_ARB_explicit_uniform_location &&
|
||||||
GLAD_GL_ARB_shading_language_420pack));
|
GLAD_GL_ARB_shading_language_420pack));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user