mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
mesa: only update array _MaxElement if array is enabled
Fixes failed assertion when calling _mesa_print_arrays() debug function.
This commit is contained in:
parent
de1df26b5c
commit
496bf04905
1 changed files with 3 additions and 2 deletions
|
|
@ -289,9 +289,10 @@ remove_array_object( struct gl_context *ctx, struct gl_array_object *obj )
|
|||
static GLuint
|
||||
update_min(GLuint min, struct gl_client_array *array)
|
||||
{
|
||||
_mesa_update_array_max_element(array);
|
||||
if (array->Enabled)
|
||||
if (array->Enabled) {
|
||||
_mesa_update_array_max_element(array);
|
||||
return MIN2(min, array->_MaxElement);
|
||||
}
|
||||
else
|
||||
return min;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue