From: Ian Romanick Date: Fri, 10 Oct 2014 13:29:31 +0000 (+0200) Subject: mesa: Remove GLSL_TYPE_SAMPLER check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c38d4db520a26fea26e404d8022c6ca2d954658;p=mesa.git mesa: Remove GLSL_TYPE_SAMPLER check Noting the assertion just a few lines earlier, returnType cannot be GLSL_TYPE_SAMPLER. Signed-off-by: Ian Romanick Reviewed-by: Brian Paul Reviewed-by: Tapani Pälli --- diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 77217cbee5c..aefa8b82287 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -342,8 +342,7 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location, */ if (returnType == uni->type->base_type || ((returnType == GLSL_TYPE_INT - || returnType == GLSL_TYPE_UINT - || returnType == GLSL_TYPE_SAMPLER) + || returnType == GLSL_TYPE_UINT) && (uni->type->base_type == GLSL_TYPE_INT || uni->type->base_type == GLSL_TYPE_UINT