Mesa (mesa_7_6_branch): progs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.

Vinson Lee vlee at kemper.freedesktop.org
Fri Dec 4 06:52:05 UTC 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 25fd168f03162d4cb25b50ea9bd5ff56283f6854
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25fd168f03162d4cb25b50ea9bd5ff56283f6854

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Nov 17 11:37:48 2009 -0800

progs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.

tangentAtrrib is assigned the result of glGetAttribLocation.
The assertion 'assert(tangentAtrrib >= 0)' would be a no-op if
tangentAttrib is a GLuint.
(cherry picked from commit b8dcb79c53796f37234bd2b0f5e2845f817fc218)

---

 progs/glsl/bump.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/progs/glsl/bump.c b/progs/glsl/bump.c
index 87669ae..50a0900 100644
--- a/progs/glsl/bump.c
+++ b/progs/glsl/bump.c
@@ -36,7 +36,7 @@ static GLint win = 0;
 
 static GLfloat xRot = 20.0f, yRot = 0.0f, zRot = 0.0f;
 
-static GLuint tangentAttrib;
+static GLint tangentAttrib;
 
 static GLboolean Anim = GL_FALSE;
 




More information about the mesa-commit mailing list