diff options
author | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-01-25 12:11:03 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@tungstengraphics.com> | 2007-01-25 12:11:03 +0100 |
commit | 5970400476c5c0a1223a49e9ec2eb511ae94b246 (patch) | |
tree | 899de469e103c11ba3abb966b5cd6277fce96b62 /src/mesa/vbo | |
parent | feeed10dfd1495eb15924868fec3b795fb4b1ba3 (diff) |
re-fix bug 9062 in vbo code
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r-- | src/mesa/vbo/vbo_exec_draw.c | 5 |
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 846d5dc196..2b52d7a1ff 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; |