mesa: GL_BYTE vertex/texcoord arrays
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 17:49:25 +0000 (11:49 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 17:49:25 +0000 (11:49 -0600)
src/mesa/main/mfeatures.h
src/mesa/main/varray.c

index 13397e97ba61d0e68749c98cca071517325c518a..a305bbd6059f937ffb4d40d53123659ed24c7cd3 100644 (file)
@@ -53,6 +53,7 @@
 #define FEATURE_texture_fxt1  _HAVE_FULL_GL
 #define FEATURE_texture_s3tc  _HAVE_FULL_GL
 #define FEATURE_userclip  _HAVE_FULL_GL
+#define FEATURE_vertex_array_byte 0
 
 #define FEATURE_ARB_occlusion_query  _HAVE_FULL_GL
 #define FEATURE_ARB_fragment_program  _HAVE_FULL_GL
index 9474724c33a3e47fdd013ddd34ba932129a7cacd..220db35855f349673a6dba84d6968269fc122bd4 100644 (file)
@@ -125,6 +125,11 @@ _mesa_VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
       case GL_FIXED:
          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)" );
@@ -424,6 +429,11 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride,
       case GL_FIXED:
          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)" );