From ee1f047c8146c717fff30f1690d4ff9e69bd179f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 2 Nov 2010 08:22:40 -0600 Subject: mesa: use GLubyte for edge flag arrays Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31310 --- src/mesa/main/varray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 73172c5779..6cb9638c9f 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -321,7 +321,7 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride, void GLAPIENTRY _mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr) { - const GLbitfield legalTypes = BOOL_BIT; + const GLbitfield legalTypes = UNSIGNED_BYTE_BIT; /* see table 2.4 edits in GL_EXT_gpu_shader4 spec: */ const GLboolean integer = GL_TRUE; GET_CURRENT_CONTEXT(ctx); @@ -330,7 +330,7 @@ _mesa_EdgeFlagPointer(GLsizei stride, const GLvoid *ptr) update_array(ctx, "glEdgeFlagPointer", &ctx->Array.ArrayObj->EdgeFlag, _NEW_ARRAY_EDGEFLAG, legalTypes, 1, 1, - 1, GL_BOOL, stride, GL_FALSE, integer, ptr); + 1, GL_UNSIGNED_BYTE, stride, GL_FALSE, integer, ptr); } -- cgit v1.2.3