mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format.
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 7 Nov 2013 09:05:01 +0000 (22:05 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 7 Nov 2013 20:10:06 +0000 (09:10 +1300)
Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/glformats.c

index dfee6f1963f74b642c85243c7774d817df08eb5d..740faa890d43c81126117531116c5b15d0d16b79 100644 (file)
@@ -345,6 +345,11 @@ _mesa_bytes_per_vertex_attrib(GLint comps, GLenum type)
          return sizeof(GLuint);
       else
          return -1;
+   case GL_UNSIGNED_INT_10F_11F_11F_REV:
+      if (comps == 3)
+         return sizeof(GLuint);
+      else
+         return -1;
    default:
       return -1;
    }