mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
glsl: Fix off-by-one error setting max_array_access for non-constant indexing
NOTE: This is a candidate for the stable branches.
This commit is contained in:
parent
bc83f6bd58
commit
0d9d036004
1 changed files with 1 additions and 1 deletions
|
|
@ -1577,7 +1577,7 @@ ast_expression::hir(exec_list *instructions,
|
|||
*/
|
||||
ir_variable *v = array->whole_variable_referenced();
|
||||
if (v != NULL)
|
||||
v->max_array_access = array->type->array_size();
|
||||
v->max_array_access = array->type->array_size() - 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue