vbo_exec_vtx_map( exec );
assert((exec->ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT) == 0);
- exec->ctx->Driver.NeedFlush = FLUSH_UPDATE_CURRENT;
+ exec->ctx->Driver.NeedFlush |= FLUSH_UPDATE_CURRENT;
}
void vbo_exec_FlushVertices_internal( GLcontext *ctx, GLboolean unmap )
/* Need to do this to ensure BeginVertices gets called again:
*/
- if (flags & FLUSH_UPDATE_CURRENT) {
- assert(exec->ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT);
+ if (exec->ctx->Driver.NeedFlush & FLUSH_UPDATE_CURRENT) {
_mesa_restore_exec_vtxfmt( ctx );
+ exec->ctx->Driver.NeedFlush &= ~FLUSH_UPDATE_CURRENT;
}
exec->ctx->Driver.NeedFlush &= ~flags;