From a1853eaea7fa5caf59b52567cc49f964ce5293ec Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 19 Aug 2014 13:56:42 -1000 Subject: glsl: Use the without_array predicate in some more places Reviewed-by: Matt Turner Signed-off-by: Timothy Arceri --- src/mesa/program/ir_to_mesa.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa') diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 011ffed7bb4..e5844c3c437 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2432,8 +2432,7 @@ add_uniform_to_shader::visit_field(const glsl_type *type, const char *name, } gl_register_file file; - if (type->is_sampler() || - (type->is_array() && type->fields.array->is_sampler())) { + if (type->without_array()->is_sampler()) { file = PROGRAM_SAMPLER; } else { file = PROGRAM_UNIFORM; -- cgit v1.2.3