Fix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis)
authorAapo Tahkola <aapo@aapo-desktop.(none)>
Sun, 25 Feb 2007 23:51:39 +0000 (01:51 +0200)
committerAapo Tahkola <aapo@aapo-desktop.(none)>
Sun, 25 Feb 2007 23:51:39 +0000 (01:51 +0200)
src/mesa/vbo/vbo_exec_draw.c
src/mesa/vbo/vbo_save_draw.c

index 2b52d7a1fff9662c4a64f0144eb81193642f116c..d8f167b3577c7a0381a1ea6c9527b4d5054ca3b7 100644 (file)
@@ -218,7 +218,7 @@ void vbo_exec_vtx_flush( struct vbo_exec_context *exec )
                                       exec->vtx.prim_count,
                                       NULL,
                                       0,
-                                      exec->vtx.vert_count );
+                                      exec->vtx.vert_count - 1);
       }
    }
 
index a50d1cd9049862be3ab45595f38a254e80b100c3..bc59a0d8211c356bc4615f814ef7ee1b9af79da3 100644 (file)
@@ -218,7 +218,7 @@ void vbo_save_playback_vertex_list( GLcontext *ctx, void *data )
                                    node->prim_count,
                                    NULL,
                                    0,  /* Node is a VBO, so this is ok */
-                                   node->count );
+                                   node->count - 1);
    }
 
    /* Copy to current?