mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
Revert "mesa: only update _MaxElement when we actually need it"
This reverts commit 0de5a21470.
I was wrong, we use it in the vbo module too.
This fixes a performance regression in Nexuiz.
This commit is contained in:
parent
dbf48e88eb
commit
bf3304a84b
1 changed files with 1 additions and 3 deletions
|
|
@ -562,10 +562,8 @@ _mesa_update_state_locked( struct gl_context *ctx )
|
|||
new_prog_state |= update_program( ctx );
|
||||
}
|
||||
|
||||
if (ctx->Const.CheckArrayBounds &&
|
||||
(new_state & (_NEW_ARRAY | _NEW_PROGRAM | _NEW_BUFFER_OBJECT))) {
|
||||
if (new_state & (_NEW_ARRAY | _NEW_PROGRAM | _NEW_BUFFER_OBJECT))
|
||||
_mesa_update_array_object_max_element(ctx, ctx->Array.ArrayObj);
|
||||
}
|
||||
|
||||
out:
|
||||
new_prog_state |= update_program_constants(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue