My application sent me this message when I tried to run a GLSL3.3 shader
#version 330
layout(location = 0) in vec2 position;
layout(location = 1) uniform float TimeUniform = 0.0f;
out float TimeUniformFrag;
void main() {
gl_Position = vec4(position.x - 1.0f, position.y - 1.0f, 0.0f, 1.0f);
TimeUniformFrag = TimeUniform;
}
...
Vertex Shader: 0:3(1): error: uniform explicit location requires GL_ARB_explicit_uniform_location and either GL_ARB_explicit_attrib_location or GLSL 3.30.
So I went back and added said extension to the GLAD generator:
You can see my choices below!
http://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D3.3&extensions=GL_ARB_explicit_uniform_location
Afterwards, I copy-pasted my glad.c and glad.h files back into my file and compiled... and to my surprise, I got the same error! (Didn't include KHR.h file)
What am I doing wrong?