From 29fbf72dbf158d766d3cac3b2db16d9fcbef0d0b Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Sun, 9 Mar 2008 17:53:22 -0600 Subject: Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV() --- src/mesa/main/varray.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 11720e4073b..f41ee73c884 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: -- cgit v1.2.3