projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09fc932
)
fix primitive calculation in 1-line dlist immediates (molecules)
author
Keith Whitwell
<keith@tungstengraphics.com>
Thu, 13 Dec 2001 10:49:04 +0000
(10:49 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Thu, 13 Dec 2001 10:49:04 +0000
(10:49 +0000)
src/mesa/tnl/t_imm_dlist.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_imm_dlist.c
b/src/mesa/tnl/t_imm_dlist.c
index aa0ba093a905143aa597193edfd4e43a58934866..d89d9292dffa303e6208b57e1d1ca2de3df57385 100644
(file)
--- a/
src/mesa/tnl/t_imm_dlist.c
+++ b/
src/mesa/tnl/t_imm_dlist.c
@@
-1,4
+1,4
@@
-/* $Id: t_imm_dlist.c,v 1.3
1 2001/12/04 13:04:29
keithw Exp $ */
+/* $Id: t_imm_dlist.c,v 1.3
2 2001/12/13 10:49:04
keithw Exp $ */
/*
* Mesa 3-D graphics library
@@
-229,7
+229,7
@@
static void fixup_compiled_primitives( GLcontext *ctx, struct immediate *IM )
* set copystart because it might skip materials?
*/
ASSERT(IM->Start == IM->CopyStart);
- if (i > IM->CopyStart) {
+ if (i > IM->CopyStart
|| !(IM->Flag[IM->Start] & VERT_BEGIN)
) {
IM->Primitive[IM->CopyStart] = GL_POLYGON+1;
IM->PrimitiveLength[IM->CopyStart] = i - IM->CopyStart;
if (IM->Flag[i] & VERT_END_VB) {