projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f074d
)
mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH.
author
Eric Anholt
<eric@anholt.net>
Mon, 23 Aug 2010 16:47:15 +0000
(09:47 -0700)
committer
Eric Anholt
<eric@anholt.net>
Mon, 23 Aug 2010 17:34:31 +0000
(10:34 -0700)
Fixes: glsl-getactiveuniform-length.
src/mesa/main/shaderapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderapi.c
b/src/mesa/main/shaderapi.c
index cc350c93b9780f8adeb8412ec790f4dcdd979a3c..1335f0f4111f0858d627e1a0d56e766962c0c01e 100644
(file)
--- 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;