summaryrefslogtreecommitdiff
path: root/src/mesa/vbo/vbo_exec_api.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-02-22 13:31:09 -0700
committerBrian Paul <brianp@vmware.com>2011-02-22 13:31:09 -0700
commitd7fcb2ac81e1b1da593f0ce7375324773470d8ed (patch)
tree51b8c28214ad8cdd09cbd36709e562962d24c26b /src/mesa/vbo/vbo_exec_api.c
parentd8aebc4e4b9bb2b62dec5849698cfc1f2ed67c21 (diff)
vbo: simplify NeedFlush flag clearing
Diffstat (limited to 'src/mesa/vbo/vbo_exec_api.c')
-rw-r--r--src/mesa/vbo/vbo_exec_api.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 8dcbc8b72c..2f9f3ec7c4 100644
--- 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--;