mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 10:10:09 +01:00
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@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
5b9cf337b4
commit
9c38d4db52
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue