draw: flush between pt/non-pt modes
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 1 Apr 2008 13:14:06 +0000 (14:14 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 1 Apr 2008 13:51:24 +0000 (14:51 +0100)
src/gallium/auxiliary/draw/draw_pt.c

index fc93041..df306a5 100644 (file)
@@ -167,6 +167,10 @@ draw_pt_arrays(struct draw_context *draw,
    frontend = draw->pt.front.vcache;
 #endif   
 
+   /* XXX: need to flush to get prim_vbuf.c to release its allocation?? 
+    */
+   draw_do_flush( draw, DRAW_FLUSH_BACKEND );
+
    frontend->prepare( frontend, middle );
 
    frontend->run( frontend,