summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2013-11-07 22:05:01 +1300
committerChris Forbes <[email protected]>2013-11-08 09:10:06 +1300
commitfa14f8afa05eda26f45e4162878e387e4713e488 (patch)
tree6f830e9dd453fadaf563d26786453ba421ec02c1
parent1f092a95941b990f3a06fa71a3b53e15a8a112e8 (diff)
mesa: Add support to _mesa_bytes_per_vertex_attrib for 10_11_11 format.
Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r--src/mesa/main/glformats.c5
1 files changed, 5 insertions, 0 deletions
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;
}