mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.
authorEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 16:47:15 +0000 (09:47 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 23 Aug 2010 17:34:31 +0000 (10:34 -0700)
Fixes: glsl-getactiveuniform-length.
src/mesa/main/shaderapi.c

index cc350c93b9780f8adeb8412ec790f4dcdd979a3c..1335f0f4111f0858d627e1a0d56e766962c0c01e 100644 (file)
@@ -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;