mesa: GL_BYTE vertex/texcoord arrays
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 20 Jun 2008 17:49:25 +0000 (11:49 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 22 Sep 2008 05:13:55 +0000 (22:13 -0700)
src/mesa/main/mfeatures.h
src/mesa/main/varray.c

index 6563bdd19f6c9c5801a98659a9d6f6adfadc3b1c..6e73620a77efaf1f04c00d3d114a577d19917e1c 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_windowpos  _HAVE_FULL_GL
 #define FEATURE_es2_glsl 0
 
index c27f1aa7b8c9102aab5b3e81e4e53cfccea9ca85..5194523c2457143ce29b5655b39fb2798dd7a5d2 100644 (file)
@@ -120,6 +120,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)" );
@@ -419,6 +424,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)" );