summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2007-01-25 12:11:03 +0100
committerRoland Scheidegger <[email protected]>2007-01-25 12:11:03 +0100
commit5970400476c5c0a1223a49e9ec2eb511ae94b246 (patch)
tree899de469e103c11ba3abb966b5cd6277fce96b62
parentfeeed10dfd1495eb15924868fec3b795fb4b1ba3 (diff)
re-fix bug 9062 in vbo code
-rw-r--r--src/mesa/vbo/vbo_exec_draw.c5
1 files changed, 5 insertions, 0 deletions
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;