diff options
author | Keith Whitwell <[email protected]> | 2001-11-26 12:56:07 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-11-26 12:56:07 +0000 |
commit | f660ec6ff82e06b08e088a7be93dbf75dc324039 (patch) | |
tree | 89598c761fd933ee7fd3b716df4fd0c2cf0141ed | |
parent | 358ed73e1db4826fca3c33f78553ffd9322df109 (diff) |
Possible fix for vtk tristrip bug
-rw-r--r-- | src/mesa/tnl/t_imm_fixup.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_fixup.c b/src/mesa/tnl/t_imm_fixup.c index b0e83c370bf..dedda0da017 100644 --- a/src/mesa/tnl/t_imm_fixup.c +++ b/src/mesa/tnl/t_imm_fixup.c @@ -1,4 +1,4 @@ -/* $Id: t_imm_fixup.c,v 1.26 2001/08/03 00:16:36 keithw Exp $ */ +/* $Id: t_imm_fixup.c,v 1.27 2001/11/26 12:56:07 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -735,7 +735,12 @@ _tnl_get_exec_copy_verts( GLcontext *ctx, struct immediate *IM ) tnl->ExecCopySource = IM; tnl->ExecCopyCount = 0; tnl->ExecCopyTexSize = IM->CopyTexSize; - tnl->ExecParity = IM->PrimitiveLength[IM->LastPrimitive] & 1; + + if (IM->LastPrimitive != IM->CopyStart) + tnl->ExecParity = 0; + + tnl->ExecParity ^= IM->PrimitiveLength[IM->LastPrimitive] & 1; + if (pincr != 1 && (IM->Count - last - pintro)) ovf = (IM->Count - last - pintro) % pincr; |