glsl2: When setting the size of an unsized array, set its deref's size too.

This commit is contained in:
Eric Anholt
2010-07-22 15:50:37 -07:00
parent c3081e6273
commit 9703ed05e6

View 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;
}
}