mesa: Fix GL_FIXED arrays.
authorChia-I Wu <olv@lunarg.com>
Thu, 9 Dec 2010 11:05:50 +0000 (19:05 +0800)
committerChia-I Wu <olv@lunarg.com>
Thu, 9 Dec 2010 11:25:05 +0000 (19:25 +0800)
It is broken since 433e5e6defc85d8b1d6262aff990e3f5a8b37027.

src/mesa/main/image.c

index df1527b47f1b1ec899d58b615c92656e07618709..f9f2ed73077621c040606e665f42334d1a2376cb 100644 (file)
@@ -154,6 +154,8 @@ _mesa_sizeof_type( GLenum type )
         return sizeof(GLdouble);
       case GL_HALF_FLOAT_ARB:
         return sizeof(GLhalfARB);
+      case GL_FIXED:
+        return sizeof(GLfixed);
       default:
          return -1;
    }