From fa14f8afa05eda26f45e4162878e387e4713e488 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 7 Nov 2013 22:05:01 +1300 Subject: [PATCH] mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format. Signed-off-by: Chris Forbes Reviewed-by: Eric Anholt --- src/mesa/main/glformats.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index dfee6f1..740faa8 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -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; } -- 2.7.4