I have a frament shader in GLSL language and when I use getUniformLocation with a variable then the function returns -1.
In fragment shader:
uniform sampler2DShadow shadowVar;
In C code:
idVariable = getUniformLocation(shader, "shadowVar");
idVariable is asigned -1.
I get this problem with ATI HD 5670 cards only.
Can anyone help me,please?