fix broken point rendering in sp_vbuf_render()
authorBrian <brian.paul@tungstengraphics.com>
Mon, 21 Jan 2008 18:37:58 +0000 (11:37 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Mon, 21 Jan 2008 18:37:58 +0000 (11:37 -0700)
src/mesa/pipe/softpipe/sp_prim_setup.c

index 89f8df945ccf91fe0bd0f6e956816f0587005b08..444c80232fa716a6e03dc18951b09a44836cd1a2 100644 (file)
@@ -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 );
       }