Commit 001a7bfd authored by Eric Anholt's avatar Eric Anholt

mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.

Fixes: glsl-getactiveuniform-length.
parent c2f074d8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment