summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-06-20 11:49:25 -0600
committerKeith Whitwell <[email protected]>2008-09-21 22:13:55 -0700
commitd17485fef9b084a6812c626d9734816429f29199 (patch)
tree7d8085f0558d2656bbc804a88e8ca888fbf1a6c2 /src/mesa/main/varray.c
parent394c1d1c53074f82d2664f655f948f8966f46b9d (diff)
mesa: GL_BYTE vertex/texcoord arrays
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index c27f1aa7b8c..5194523c245 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -121,6 +121,11 @@ _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
elementSize = size * sizeof(GLfixed);
break;
#endif
+#if FEATURE_vertex_array_byte
+ case GL_BYTE:
+ elementSize = size * sizeof(GLbyte);
+ break;
+#endif
default:
_mesa_error( ctx, GL_INVALID_ENUM, "glVertexPointer(type)" );
return;
@@ -420,6 +425,11 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride,
elementSize = size * sizeof(GLfixed);
break;
#endif
+#if FEATURE_vertex_array_byte
+ case GL_BYTE:
+ elementSize = size * sizeof(GLbyte);
+ break;
+#endif
default:
_mesa_error( ctx, GL_INVALID_ENUM, "glTexCoordPointer(type)" );
return;