From: Chris Forbes Date: Thu, 7 Nov 2013 09:05:01 +0000 (+1300) Subject: mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa14f8afa05eda26f45e4162878e387e4713e488;p=mesa.git mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format. Signed-off-by: Chris Forbes Reviewed-by: Eric Anholt --- diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index dfee6f1963f..740faa890d4 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; }