projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8b25ad
)
fx another place where PRIM_PARITY is calculated
author
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 3 Dec 2001 17:47:04 +0000
(17:47 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Mon, 3 Dec 2001 17:47:04 +0000
(17:47 +0000)
src/mesa/tnl/t_imm_fixup.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_imm_fixup.c
b/src/mesa/tnl/t_imm_fixup.c
index dedda0da0171908f4c3edb1bd38ea401de64aea4..ce593343a9093fdd9e71d7fcc58d9caa62d0bdb8 100644
(file)
--- 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.2
7 2001/11/26 12:56:07
keithw Exp $ */
+/* $Id: t_imm_fixup.c,v 1.2
8 2001/12/03 17:47:04
keithw Exp $ */
/*
* Mesa 3-D graphics library
@@
-766,7
+766,10
@@
_tnl_get_purged_copy_verts( GLcontext *ctx, struct immediate *IM )
GLuint ovf = 0, i;
tnl->ExecCopyCount = 0;
- tnl->ExecParity = IM->PrimitiveLength[last] & 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;