Mesa (master): vbo: simplify NeedFlush flag clearing
Brian Paul
brianp at kemper.freedesktop.org
Tue Feb 22 21:41:46 UTC 2011
Module: Mesa
Branch: master
Commit: d7fcb2ac81e1b1da593f0ce7375324773470d8ed
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7fcb2ac81e1b1da593f0ce7375324773470d8ed
Author: Brian Paul <brianp at vmware.com>
Date: Tue Feb 22 13:31:09 2011 -0700
vbo: simplify NeedFlush flag clearing
---
src/mesa/vbo/vbo_exec_api.c | 5 +----
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 8dcbc8b..2f9f3ec 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--;
More information about the mesa-commit
mailing list