diff options
author | Ian Romanick <[email protected]> | 2014-10-10 15:29:31 +0200 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-11-10 04:25:39 -0800 |
commit | 9c38d4db520a26fea26e404d8022c6ca2d954658 (patch) | |
tree | 5b8c1862bca7ce2241c746f8f18ce824dc2fb451 /src/mesa/main | |
parent | 5b9cf337b451a1229a3abc30aeb9c15393c8462c (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/uniform_query.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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 |