summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-23 09:47:15 -0700
committerEric Anholt <[email protected]>2010-08-23 10:34:31 -0700
commit001a7bfdfc8b3c8930d5ced21982dbdfb8cd35b3 (patch)
tree0adc0b13634302dffd99ee0d227d8ed889b37838 /src/mesa
parentc2f074d8a4b93f3f3a81311f9a114b11bc5f80d8 (diff)
mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.
Fixes: glsl-getactiveuniform-length.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index cc350c93b97..1335f0f4111 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -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;