From: Eric Anholt Date: Tue, 27 Sep 2011 21:36:07 +0000 (-0700) Subject: mesa: Add missing _mesa_sizeof_glsl_type() for UNSIGNED_INT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0045a674183b7716a2b64f3f81223e5a0ca5e074;p=mesa.git mesa: Add missing _mesa_sizeof_glsl_type() for UNSIGNED_INT. Somehow we managed to get the unsigned int vectors, but not scalar. Fixes _mesa_problem complaints in piglit's uint tests. Reviewed-by: Chad Versace Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 74997eaaa77..3ce14d15446 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -137,6 +137,7 @@ _mesa_sizeof_glsl_type(GLenum type) switch (type) { case GL_FLOAT: case GL_INT: + case GL_UNSIGNED_INT: case GL_BOOL: case GL_SAMPLER_1D: case GL_SAMPLER_2D: