projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8aebc4
)
vbo: simplify NeedFlush flag clearing
author
Brian Paul
<brianp@vmware.com>
Tue, 22 Feb 2011 20:31:09 +0000
(13:31 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 22 Feb 2011 20:31:09 +0000
(13:31 -0700)
src/mesa/vbo/vbo_exec_api.c
patch
|
blob
|
history
diff --git
a/src/mesa/vbo/vbo_exec_api.c
b/src/mesa/vbo/vbo_exec_api.c
index 8dcbc8b72c7dc31bab862aaa8d2992a9ac57921e..2f9f3ec7c465797ffde23b81317a7c4726860b2e 100644
(file)
--- a/
src/mesa/vbo/vbo_exec_api.c
+++ b/
src/mesa/vbo/vbo_exec_api.c
@@
-974,10
+974,7
@@
void vbo_exec_FlushVertices( struct gl_context *ctx, GLuint flags )
/* Need to do this to ensure BeginVertices gets called again:
*/
- if (ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT)
- ctx->Driver.NeedFlush &= ~FLUSH_UPDATE_CURRENT;
-
- ctx->Driver.NeedFlush &= ~flags;
+ ctx->Driver.NeedFlush &= ~(FLUSH_UPDATE_CURRENT | flags);
#ifdef DEBUG
exec->flush_call_depth--;