Quote
It seems the documentation is wrong here. The OpenGL specification is very clear here: length is for the number of characters that is actually written into the buffer. Also, the spec does not require any NULL checks for the uniformName parameter.
Or, to put it another way, you cannot use glGetActiveUniformName to get the length of the uniform's name. You have to do this with glGetActiveUniform.
I've corrected the documentation on the wiki.
Or, to put it another way, you cannot use glGetActiveUniformName to get the length of the uniform's name. You have to do this with glGetActiveUniform.
I've corrected the documentation on the wiki.
So it seems to be a documentation issue rather than actual driver bug. Thank you for your quick reponse though!



Find content
Not Telling
Display name history