mesa: Remove GLSL_TYPE_SAMPLER check
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 10 Oct 2014 13:29:31 +0000 (15:29 +0200)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 10 Nov 2014 12:25:39 +0000 (04:25 -0800)
Noting the assertion just a few lines earlier, returnType cannot be
GLSL_TYPE_SAMPLER.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/main/uniform_query.cpp

index 77217cbee5c60a928efd42a7195435c4d427a64e..aefa8b82287ff9c6a111ca61c877fcf53b6feeea 100644 (file)
@@ -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