Closed mrzzzrm closed 8 years ago
Okay, I just saw we use another method to get the length of the name for active uniforms: https://www.opengl.org/sdk/docs/man/html/glGetActiveUniformsiv.xhtml
If pname is GL_UNIFORM_NAME_LENGTH, then an array identifying the length, including the terminating null character, of the uniform name strings specified by the corresponding array of uniformIndices is returned.
Probably we should use the single uniform variant for single uniform requests...
...not sure what you mean by "single uniform variant". Alas I don't see a way of retrieving the name of uniform with a single gl call, if that's what you're getting at.
One additional method that is used for requesting metadata of a single uniform. But this has merely to do with this PR, I wanted to document it for later.
The documentation on glGetActiveUniform states:
Your implementation assumes the null byte is counted in the length output parameter?