glsl: use is_sampler() anywhere it's possible
[mesa.git] / src / mesa / main / uniform_query.cpp
index 010a7b24b1b4574e0ad42c0ddcc23e4a84fe59a5..4d06313565f63cb8b0fd37796a382c1cd89c2525 100644 (file)
@@ -355,7 +355,7 @@ _mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location,
              &&
              (uni->type->base_type == GLSL_TYPE_INT
               || uni->type->base_type == GLSL_TYPE_UINT
-               || uni->type->base_type == GLSL_TYPE_SAMPLER
+               || uni->type->is_sampler()
                || uni->type->is_image()))
           || ((returnType == GLSL_TYPE_UINT64 ||
                returnType == GLSL_TYPE_INT64 ) &&