From: Brian Paul Date: Tue, 22 Feb 2011 20:31:09 +0000 (-0700) Subject: vbo: simplify NeedFlush flag clearing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7fcb2ac81e1b1da593f0ce7375324773470d8ed;p=mesa.git vbo: simplify NeedFlush flag clearing --- diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 8dcbc8b72c7..2f9f3ec7c46 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--;