Fixes a minor oversight where a precision qualifier was not
allowed for an array of samplers.

---
 src/glsl/ast_to_hir.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 1bfb4e5..08fd0d3 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3397,7 +3397,8 @@ ast_declarator_list::hir(exec_list *instructions,
           && !var->type->is_sampler()
           && !(var->type->is_array()
                && (var->type->fields.array->is_float()
-                   || var->type->fields.array->is_integer()))) {
+                   || var->type->fields.array->is_integer()
+                   || var->type->fields.array->is_sampler()))) {
 
          _mesa_glsl_error(&loc, state,
                           "precision qualifiers apply only to floating point"
-- 
1.8.1.2

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to