projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf48e8
)
Revert "mesa: only update _MaxElement when we actually need it"
author
Marek Olšák
<maraeo@gmail.com>
Thu, 19 Apr 2012 18:47:22 +0000
(20:47 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 19 Apr 2012 18:48:52 +0000
(20:48 +0200)
This reverts commit
0de5a21470b3bff9b7c8714e5d960d5ed9d01b9c
.
I was wrong, we use it in the vbo module too.
This fixes a performance regression in Nexuiz.
src/mesa/main/state.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/state.c
b/src/mesa/main/state.c
index 6efc45a43f4942bdb28ab3b32d31f99cd4ad5a34..f82e4a25ef4f6267f2c93ad40b4c2c0811f268fb 100644
(file)
--- 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);