From: Roland Scheidegger Date: Thu, 25 Jan 2007 11:11:03 +0000 (+0100) Subject: re-fix bug 9062 in vbo code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5970400476c5c0a1223a49e9ec2eb511ae94b246;p=mesa.git re-fix bug 9062 in vbo code --- diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c index 846d5dc196c..2b52d7a1fff 100644 --- a/src/mesa/vbo/vbo_exec_draw.c +++ b/src/mesa/vbo/vbo_exec_draw.c @@ -114,6 +114,11 @@ static GLuint vbo_copy_vertices( struct vbo_exec_context *exec ) return 2; } case GL_TRIANGLE_STRIP: + /* no parity issue, but need to make sure the tri is not drawn twice */ + if (nr & 1) { + exec->vtx.prim[exec->vtx.prim_count-1].count--; + } + /* fallthrough */ case GL_QUAD_STRIP: switch (nr) { case 0: ovf = 0; break;