glsl2: When setting the size of an unsized array, set its deref's size too.
authorEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 22:50:37 +0000 (15:50 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 22:56:07 +0000 (15:56 -0700)
src/glsl/ast_to_hir.cpp

index 5e26f21e9af04640bcb0344756b43a878992b2e7..c03206fd2e5165815d85c769d7fd488800319b92 100644 (file)
@@ -531,6 +531,7 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
 
         var->type = glsl_type::get_array_instance(lhs->type->element_type(),
                                                   rhs->type->array_size());
+        d->type = var->type;
       }
    }