summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-20 11:49:25 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-20 11:49:25 -0600
commita9b46b9e4c79665febb21180150ba54731aa4bc9 (patch)
tree46d98fe7b327451ab95a016aaa9c914af0cee688 /src/mesa
parent42c468a5dea30d1428205d81798eaf3a0c42ef3a (diff)
mesa: GL_BYTE vertex/texcoord arrays
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/mfeatures.h1
-rw-r--r--src/mesa/main/varray.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h
index 13397e97ba..a305bbd605 100644
--- a/src/mesa/main/mfeatures.h
+++ b/src/mesa/main/mfeatures.h
@@ -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
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 9474724c33..220db35855 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -126,6 +126,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;
@@ -425,6 +430,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;