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 fc9304197a9ffe65c449eb4eb406f8e59b825fcd..df306a5fa4f41aa3cce5058a53c5c0aa4314f382 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,