draw: defensively flush pipeline backend when setting primitive
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 26 May 2008 18:10:44 +0000 (19:10 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 26 May 2008 18:10:44 +0000 (19:10 +0100)
src/gallium/auxiliary/draw/draw_pt_emit.c

index d0c9577ee644879a2f8b7eeba4aa5e03e57c2bd3..e37256b1ff45b6e1438f892f2096c405387af4b6 100644 (file)
@@ -53,6 +53,10 @@ void draw_pt_emit_prepare( struct pt_emit *emit,
    unsigned i;
    boolean ok;
    
+   /* XXX: need to flush to get prim_vbuf.c to release its allocation?? 
+    */
+   draw_do_flush( draw, DRAW_FLUSH_BACKEND );
+
 
    /* XXX: may need to defensively reset this later on as clipping can
     * clobber this state in the render backend.