diff options
author | Keith Whitwell <[email protected]> | 2001-12-13 10:49:04 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-12-13 10:49:04 +0000 |
commit | 59e5b90452f069e44780420e681dba67c462ae88 (patch) | |
tree | 976de71b298e12c108b82ec4804fd169c9c7401b /src/mesa/tnl | |
parent | 09fc9324f6fd0f408cf3191a2eac4f704de502ab (diff) |
fix primitive calculation in 1-line dlist immediates (molecules)
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_imm_dlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_imm_dlist.c b/src/mesa/tnl/t_imm_dlist.c index aa0ba093a90..d89d9292dff 100644 --- 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.31 2001/12/04 13:04:29 keithw Exp $ */ +/* $Id: t_imm_dlist.c,v 1.32 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) { |