From: Brian Paul Date: Tue, 2 Nov 2010 14:22:40 +0000 (-0600) Subject: mesa: use GLubyte for edge flag arrays X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee1f047c8146c717fff30f1690d4ff9e69bd179f;p=mesa.git mesa: use GLubyte for edge flag arrays Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31310 --- diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 73172c57797..6cb9638c9f8 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); }