Commit 3dc932d4 authored by Timothy Arceri's avatar Timothy Arceri

glsl: only call mark_max_array if we are assigning an

 array

This change does not help fix or prevent any bugs
it just seems reasonable to do
Signed-off-by: Timothy Arceri's avatarTimothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Paul Berry's avatarPaul Berry <stereotype441@gmail.com>
parent bfb48750
......@@ -830,8 +830,10 @@ do_assignment(exec_list *instructions, struct _mesa_glsl_parse_state *state,
rhs->type->array_size());
d->type = var->type;
}
mark_whole_array_access(rhs);
mark_whole_array_access(lhs);
if (lhs->type->is_array()) {
mark_whole_array_access(rhs);
mark_whole_array_access(lhs);
}
}
/* Most callers of do_assignment (assign, add_assign, pre_inc/dec,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment