projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
507da24
)
Set normalized flag for GLubyte arrays in _mesa_VertexAttribPointerNV()
author
Markus Amsler
<markus.amsler@oribi.org>
Sun, 9 Mar 2008 23:53:22 +0000
(17:53 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Sun, 9 Mar 2008 23:54:32 +0000
(17:54 -0600)
src/mesa/main/varray.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/varray.c
b/src/mesa/main/varray.c
index 11720e4073b9fc3f0d1a16950e74058b76ec9be3..f41ee73c884e3ea666992ea604894010e1d60828 100644
(file)
--- 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: