summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl/t_imm_fixup.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-05-14 16:34:24 +0000
committerKeith Whitwell <[email protected]>2001-05-14 16:34:24 +0000
commit649971518c6b79bc510d3a15b025250a7f947def (patch)
tree696ad82dfce92853f8c4b389c0522107f17f05d2 /src/mesa/tnl/t_imm_fixup.c
parentf89035b8c45ff13392fe7cb3ce0c2bdb7e4166be (diff)
typo
Diffstat (limited to 'src/mesa/tnl/t_imm_fixup.c')
-rw-r--r--src/mesa/tnl/t_imm_fixup.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/mesa/tnl/t_imm_fixup.c b/src/mesa/tnl/t_imm_fixup.c
index ea51850e21c..0f555d43e29 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.17 2001/05/14 09:00:51 keithw Exp $ */
+/* $Id: t_imm_fixup.c,v 1.18 2001/05/14 16:34:24 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -367,10 +367,10 @@ static void copy_material( struct immediate *next,
static GLboolean is_fan_like[GL_POLYGON+1] = {
GL_FALSE,
GL_FALSE,
- GL_FALSE,
GL_TRUE, /* line loop */
GL_FALSE,
GL_FALSE,
+ GL_FALSE,
GL_TRUE, /* tri fan */
GL_FALSE,
GL_FALSE,
@@ -643,9 +643,11 @@ void _tnl_fixup_compiled_cassette( GLcontext *ctx, struct immediate *IM )
if (tnl->ExecParity)
IM->Primitive[IM->CopyStart] |= PRIM_PARITY;
- /* one of these should be true, else we'll be in an infinite loop */
- assert(IM->PrimitiveLength[IM->Start] > 0 ||
+ /* one of these should be true, else we'll be in an infinite loop
+ */
+ ASSERT(IM->PrimitiveLength[IM->Start] > 0 ||
IM->Flag[IM->Start] & (VERT_END|VERT_END_VB));
+
for (i = IM->Start ; i <= IM->Count ; i += IM->PrimitiveLength[i])
if (IM->Flag[i] & (VERT_END|VERT_END_VB)) {
IM->PrimitiveLength[IM->CopyStart] = i - IM->CopyStart;
@@ -666,11 +668,6 @@ void _tnl_fixup_compiled_cassette( GLcontext *ctx, struct immediate *IM )
else
ctx->Driver.CurrentExecPrimitive =
IM->Primitive[IM->LastPrimitive] & PRIM_MODE_MASK;
-
-/* fprintf(stderr, "setting cep %x in %s\n", */
-/* ctx->Driver.CurrentExecPrimitive, __FUNCTION__); */
-/* fprintf(stderr, "%s lastprim %d: %x\n", __FUNCTION__, */
-/* IM->LastPrimitive, IM->Primitive[IM->LastPrimitive]); */
}