Add support for GL_ARB_explicit_uniform_location

This commit is contained in:
georgeouzou
2019-08-25 00:16:10 +03:00
parent a3bc04b278
commit d2b24ae5d7
7 changed files with 54 additions and 6 deletions

View File

@@ -167,3 +167,12 @@ void qux2()
}
layout(early_fragment_tests) out; // ERROR
#extension GL_ARB_explicit_uniform_location : enable
layout(location = 3) uniform vec4 ucolor0; // ERROR: explicit attrib location is also required for version < 330
#extension GL_ARB_explicit_attrib_location : enable
layout(location = 4) uniform vec4 ucolor1;