glsl: fix the type of ir_constant_data::u16
[mesa.git] / src / compiler / glsl / ast_to_hir.cpp
index f050313ce7385334fbef60a50e4b234c4a12cce4..101269bcb56858d665fec262527b32c8927b4cfe 100644 (file)
@@ -962,7 +962,8 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
                           lhs_var->name);
          error_emitted = true;
       } else if (lhs->type->is_array() &&
-                 !state->check_version(120, 300, &lhs_loc,
+                 !state->check_version(state->allow_glsl_120_subset_in_110 ? 110 : 120,
+                                       300, &lhs_loc,
                                        "whole array assignment forbidden")) {
          /* From page 32 (page 38 of the PDF) of the GLSL 1.10 spec:
           *