summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-26 19:10:44 +0100
committerKeith Whitwell <[email protected]>2008-05-26 19:10:44 +0100
commitaa16e3a2750993afdba16c24237bb6d8d8e4d91a (patch)
treeb21372af44b52192db356143eccd340309ee7faf /src/gallium/auxiliary/draw
parent93bfc94c351a2eafd43ac7a20b362d969f98d86a (diff)
draw: defensively flush pipeline backend when setting primitive
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_emit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c
index d0c9577ee64..e37256b1ff4 100644
--- a/src/gallium/auxiliary/draw/draw_pt_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_emit.c
@@ -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.