glGetUniformfv, glGetUniformiv

This is probably another bug:








void glGetUniformfv(     GLuint program,


     GLint location,


     GLfloat *params);





void glGetUniformiv(     GLuint program,


     GLint location,


     GLint *params);





in both functions, after invoking them, params is always NULL… :frowning:


It should return at least something because the program is linked

It sounds like you misunderstand the usage of those functions.
You can find the documentation there:
http://www.khronos.org/opengles/sdk/docs/man/

I think you need to provide a valid pointer yourself and the requested value will be written at this address. So params should not be NULL even if the function failed.

You are supposed to be writing something like that:
GLint myValue;
glGetUniformiv(…,…,&myValue);

It’s basically C style output parameter. If the OpenGL API were written in C++ one would rather use reference parameter instead of pointer.

I was probably blind or overheated at that time :expressionless:





Thanks… You’re 100% correct





I am very ashamed at the moment…

It happens to the best of us Wink