Mesa (master): mesa: Remove GLSL_TYPE_SAMPLER check
Ian Romanick
idr at kemper.freedesktop.org
Mon Nov 10 12:27:34 UTC 2014
Module: Mesa
Branch: master
Commit: 9c38d4db520a26fea26e404d8022c6ca2d954658
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9c38d4db520a26fea26e404d8022c6ca2d954658
Author: Ian Romanick <ian.d.romanick at intel.com>
Date: Fri Oct 10 15:29:31 2014 +0200
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 <ian.d.romanick at intel.com>
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
---
src/mesa/main/uniform_query.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp
index 77217cb..aefa8b8 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
More information about the mesa-commit
mailing list