summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_vbuf.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-10 17:01:11 -0700
committerBrian <[email protected]>2008-01-10 17:01:11 -0700
commitcac8892ddb24ddb92b6f367689712925ee6c2d86 (patch)
tree1882b50046036a3602987a1b8fdfa68d44a2c34b /src/mesa/pipe/draw/draw_vbuf.c
parent763e30748e99064fafeb0d9b34de8d732732689c (diff)
Additional parameters to vbuf_render->draw()
Pass complete information about vertex/index buffer location, size, etc.
Diffstat (limited to 'src/mesa/pipe/draw/draw_vbuf.c')
-rw-r--r--src/mesa/pipe/draw/draw_vbuf.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_vbuf.c b/src/mesa/pipe/draw/draw_vbuf.c
index d010aaba076..3f6606de86f 100644
--- a/src/mesa/pipe/draw/draw_vbuf.c
+++ b/src/mesa/pipe/draw/draw_vbuf.c
@@ -291,8 +291,14 @@ vbuf_flush_indices( struct draw_stage *stage )
assert(0);
}
- vbuf->render->draw(vbuf->render, vbuf->indices, vbuf->nr_indices);
-
+ vbuf->render->draw( vbuf->render,
+ vbuf->prim,
+ vbuf->indices,
+ vbuf->nr_indices,
+ vbuf->vertices,
+ vbuf->nr_vertices,
+ vbuf->vertex_size );
+
vbuf->nr_indices = 0;
}
@@ -373,7 +379,7 @@ static void vbuf_destroy( struct draw_stage *stage )
{
struct vbuf_stage *vbuf = vbuf_stage( stage );
- FREE( vbuf->indices );
+ align_free( vbuf->indices );
FREE( stage );
}
@@ -399,7 +405,7 @@ struct draw_stage *draw_vbuf_stage( struct draw_context *draw,
assert(render->max_indices < UNDEFINED_VERTEX_ID);
vbuf->max_indices = render->max_indices;
- vbuf->indices = MALLOC( vbuf->max_indices );
+ vbuf->indices = align_malloc( vbuf->max_indices, 16 );
vbuf->vertices = NULL;
vbuf->vertex_ptr = vbuf->vertices;