mesa: Fix glTexCoordPointer with type GL_FIXED.
authorChia-I Wu <olv@lunarg.com>
Thu, 9 Dec 2010 11:37:15 +0000 (19:37 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 9 Dec 2010 11:37:56 +0000 (19:37 +0800)
GL_FIXED is also a legal type for glTexCoordPointer.

src/mesa/main/varray.c

index 340c3fe1d39bfe9bd33f57dc51ab264b2cabcede..2728b382262b94d134852ce1b79968072c54c8cc 100644 (file)
@@ -297,7 +297,8 @@ _mesa_TexCoordPointer(GLint size, GLenum type, GLsizei stride,
                       const GLvoid *ptr)
 {
    GLbitfield legalTypes = (SHORT_BIT | INT_BIT |
-                            HALF_BIT | FLOAT_BIT | DOUBLE_BIT);
+                            HALF_BIT | FLOAT_BIT | DOUBLE_BIT |
+                            FIXED_BIT);
    GET_CURRENT_CONTEXT(ctx);
    const GLuint unit = ctx->Array.ActiveTexture;
    ASSERT_OUTSIDE_BEGIN_END_AND_FLUSH(ctx);