From: Aapo Tahkola Date: Sun, 25 Feb 2007 23:51:39 +0000 (+0200) Subject: Fix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c080123998f28d9317331aec7ddfcd1074b29daf;p=mesa.git Fix #10071 - wrong max_index in vbo draw_prims. (Papadakos Panagiotis) --- diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 2b52d7a1fff..d8f167b3577 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -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); } } diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index a50d1cd9049..bc59a0d8211 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -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?