diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-08-20 15:11:11 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-08-20 15:11:11 -0600 |
commit | 0a262998ef2813d19e9fee01d3e5808416e9cb04 (patch) | |
tree | 6deb441008fbf668d863e2cea01a9ea559f74bcb /src/mesa/pipe/draw/draw_vb.c | |
parent | a83b72a67263faf21bf16ff879c9718660684aed (diff) |
Move guts of vertex array drawing into the 'draw' module.
Diffstat (limited to 'src/mesa/pipe/draw/draw_vb.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_vb.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/pipe/draw/draw_vb.c b/src/mesa/pipe/draw/draw_vb.c index 18e48c0a68..0eefb0b250 100644 --- a/src/mesa/pipe/draw/draw_vb.c +++ b/src/mesa/pipe/draw/draw_vb.c @@ -221,9 +221,9 @@ void draw_vb(struct draw_context *draw, vf_emit_vertices( draw->vf, VB->Count, draw->verts ); if (VB->Elts) - draw_set_element_buffer(draw, sizeof(unsigned), VB->Elts); + draw_set_mapped_element_buffer(draw, sizeof(unsigned), VB->Elts); else - draw_set_element_buffer(draw, 0, NULL); + draw_set_mapped_element_buffer(draw, 0, NULL); for (i = 0; i < VB->PrimitiveCount; i++) { const GLenum mode = VB->Primitive[i].mode; @@ -281,7 +281,7 @@ draw_vertices(struct draw_context *draw, /* no element/index buffer */ - draw_set_element_buffer(draw, 0, NULL); + draw_set_mapped_element_buffer(draw, 0, NULL); /*draw_prim_info(mode, &first, &incr);*/ draw_allocate_vertices( draw, numVerts ); @@ -325,7 +325,7 @@ draw_vertices(struct draw_context *draw, draw->in_vb = 0; } - +#if 000 /** * Accumulate another attribute's info. @@ -383,3 +383,4 @@ void draw_set_vertex_attributes( struct draw_context *draw, draw->nr_attrs, 0 ); #endif } +#endif |