summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMarkus Amsler <[email protected]>2008-03-09 17:53:00 -0600
committerBrian <[email protected]>2008-03-09 17:53:00 -0600
commit8161fd278551eff3465205ca6bf8ec461d265156 (patch)
tree0337f9131a7f3e40cf90fd4a7b10d87e313df437 /src/mesa/main
parent2f23025dfe5e9139dc4ef6c459ac818d1857009c (diff)
Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/varray.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index bf1ad0165e6..56772e50f69 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -443,7 +443,7 @@ void GLAPIENTRY
_mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
GLsizei stride, const GLvoid *ptr)
{
- const GLboolean normalized = GL_FALSE;
+ GLboolean normalized = GL_FALSE;
GLsizei elementSize;
GET_CURRENT_CONTEXT(ctx);
ASSERT_OUTSIDE_BEGIN_END(ctx);
@@ -471,6 +471,7 @@ _mesa_VertexAttribPointerNV(GLuint index, GLint size, GLenum type,
/* check for valid 'type' and compute StrideB right away */
switch (type) {
case GL_UNSIGNED_BYTE:
+ normalized = GL_TRUE;
elementSize = size * sizeof(GLubyte);
break;
case GL_SHORT: