mesa/st: protect internal flushes with FLUSH_CURRENT
authorKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 16:50:19 +0000 (17:50 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 17:15:18 +0000 (18:15 +0100)
Already doing this for driver.flush()

src/mesa/state_tracker/st_cb_flush.c

index 7d7d3823c99f8ccd551e0894fd6136eea091a904..fbaffd154f981df17f89f2644ebe90f7a1ce6e1a 100644 (file)
@@ -82,7 +82,7 @@ display_front_buffer(struct st_context *st)
 void st_flush( struct st_context *st, uint pipeFlushFlags,
                struct pipe_fence_handle **fence )
 {
-   FLUSH_VERTICES(st->ctx, 0);
+   FLUSH_CURRENT(st->ctx, 0);
 
    /* Release any vertex buffers that might potentially be accessed in
     * successive frames: