summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-05-26 18:54:35 +0100
committerKeith Whitwell <keith@tungstengraphics.com>2008-05-26 18:54:35 +0100
commit93bfc94c351a2eafd43ac7a20b362d969f98d86a (patch)
treec3a3bdf83fc62780d134ab76729ee10b49db751a /src
parentd80c24a81a9a46c132fe877dde6919a57cacf8c0 (diff)
draw: defensively reset render primitive some more
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_emit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_emit.c b/src/gallium/auxiliary/draw/draw_pt_emit.c
index 01396a749e..d0c9577ee6 100644
--- a/src/gallium/auxiliary/draw/draw_pt_emit.c
+++ b/src/gallium/auxiliary/draw/draw_pt_emit.c
@@ -213,6 +213,14 @@ void draw_pt_emit_linear(struct pt_emit *emit,
*/
draw_do_flush( draw, DRAW_FLUSH_BACKEND );
+ /* XXX: and work out some way to coordinate the render primitive
+ * between vbuf.c and here...
+ */
+ if (!draw->render->set_primitive(draw->render, emit->prim)) {
+ assert(0);
+ return;
+ }
+
hw_verts = render->allocate_vertices(render,
(ushort)translate->key.output_stride,
(ushort)count);