summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/state.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 6efc45a43f4..f82e4a25ef4 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -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);