diff options
author | Brian Paul <[email protected]> | 2010-11-02 08:22:40 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-02 08:23:24 -0600 |
commit | ee1f047c8146c717fff30f1690d4ff9e69bd179f (patch) | |
tree | a6773814ce0411d5e40f647e61342b2ef7ceb8a5 /src/mesa/main/varray.c | |
parent | 265b53983e5100420847d3d2c086409fc9ca8e17 (diff) |
mesa: use GLubyte for edge flag arrays
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31310
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r-- | src/mesa/main/varray.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |