vbuf_flush_vertices() instead of vbuf_flush_indices() in vbuf_end()

This commit is contained in:
Brian
2008-01-11 11:30:02 -07:00
parent f313a1ece2
commit 21b282e934
+6
View File
@@ -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;