summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-21 11:37:58 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-21 11:37:58 -0700
commit7f21d04a518ac24348934961646501d6ed029466 (patch)
treeb2252db5b35c23feaa80bc8dec3f38d802426dea /src/mesa
parent382b86e90f69fa0493fae3c7e5c9cd482984af8f (diff)
fix broken point rendering in sp_vbuf_render()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_prim_setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c
index 89f8df945c..444c80232f 100644
--- a/src/mesa/pipe/softpipe/sp_prim_setup.c
+++ b/src/mesa/pipe/softpipe/sp_prim_setup.c
@@ -1341,8 +1341,8 @@ void sp_vbuf_render( struct pipe_context *pipe,
break;
case PIPE_PRIM_POINTS:
- for (i = 0; i < nr_elements; i += 2) {
- prim.v[i] = (struct vertex_header *)((char *)vertex_buffer +
+ for (i = 0; i < nr_elements; i++) {
+ prim.v[0] = (struct vertex_header *)((char *)vertex_buffer +
elements[i] * vertex_size);
setup->stage.point( &setup->stage, &prim );
}