mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.
Fixes: glsl-getactiveuniform-length.
This commit is contained in:
parent
c2f074d8a4
commit
001a7bfdfc
1 changed files with 0 additions and 2 deletions
|
|
@ -644,8 +644,6 @@ get_programiv(GLcontext *ctx, GLuint program, GLenum pname, GLint *params)
|
|||
break;
|
||||
case GL_ACTIVE_UNIFORM_MAX_LENGTH:
|
||||
*params = _mesa_longest_uniform_name(shProg->Uniforms);
|
||||
if (*params > 0)
|
||||
(*params)++; /* add one for terminating zero */
|
||||
break;
|
||||
case GL_PROGRAM_BINARY_LENGTH_OES:
|
||||
*params = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue