diff options
author | Keith Whitwell <[email protected]> | 2008-05-26 18:54:35 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-05-26 18:54:35 +0100 |
commit | 93bfc94c351a2eafd43ac7a20b362d969f98d86a (patch) | |
tree | c3a3bdf83fc62780d134ab76729ee10b49db751a /src/gallium/auxiliary | |
parent | d80c24a81a9a46c132fe877dde6919a57cacf8c0 (diff) |
draw: defensively reset render primitive some more
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_emit.c | 8 |
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 01396a749ee..d0c9577ee64 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); |