summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-11 11:30:02 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-11 11:30:02 -0700
commit21b282e9347d06272e5dfc795aa7c0b861c240e1 (patch)
tree3de1ca33cbc386a7d9f6a026772379073ef70dd1 /src/mesa/pipe
parentf313a1ece297e2a3bea5b611082f8cc0012c64b8 (diff)
vbuf_flush_vertices() instead of vbuf_flush_indices() in vbuf_end()
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/draw/draw_vbuf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_vbuf.c b/src/mesa/pipe/draw/draw_vbuf.c
index 62aa6de68f..4f59b1b25d 100644
--- a/src/mesa/pipe/draw/draw_vbuf.c
+++ b/src/mesa/pipe/draw/draw_vbuf.c
@@ -360,8 +360,14 @@ vbuf_begin( struct draw_stage *stage )
static void
vbuf_end( struct draw_stage *stage )
{
+#if 0
/* XXX: Overkill */
vbuf_flush_indices( stage );
+#else
+ /* By flushing vertices we avoid having the vertex buffer grow and grow */
+ struct vbuf_stage *vbuf = vbuf_stage(stage);
+ vbuf_flush_vertices( stage, vbuf->vertex_size );
+#endif
stage->point = vbuf_first_point;
stage->line = vbuf_first_line;