aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-12-11 15:13:57 +0000
committerKeith Whitwell <[email protected]>2001-12-11 15:13:57 +0000
commit09fc9324f6fd0f408cf3191a2eac4f704de502ab (patch)
tree9162a57993a1d8471b264a58a3dc43e411dc7530 /src/mesa/drivers
parent74df2ef732abba668ca784190617023419c0b965 (diff)
fix glut tess lockup
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/common/t_dd_dmatmp.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mesa/drivers/common/t_dd_dmatmp.h b/src/mesa/drivers/common/t_dd_dmatmp.h
index 01750a41765..5aa0ec9bd31 100644
--- a/src/mesa/drivers/common/t_dd_dmatmp.h
+++ b/src/mesa/drivers/common/t_dd_dmatmp.h
@@ -1,4 +1,4 @@
-/* $Id: t_dd_dmatmp.h,v 1.10 2001/04/09 15:41:11 alanh Exp $ */
+/* $Id: t_dd_dmatmp.h,v 1.11 2001/12/11 15:13:57 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -310,7 +310,7 @@ static void TAG(render_tri_strip_verts)( GLcontext *ctx,
currentsz = dmasz;
}
- if (flags & PRIM_PARITY) {
+ if ((flags & PRIM_PARITY) && count - start > 2) {
if (HAVE_TRI_STRIP_1 && 0) {
} else {
EMIT_VERTS( ctx, start, 1 );
@@ -433,11 +433,6 @@ static void TAG(render_quad_strip_verts)( GLcontext *ctx,
currentsz = dmasz;
}
- if (flags & PRIM_PARITY) {
- EMIT_VERTS( ctx, start, 1 );
- currentsz--;
- }
-
dmasz -= (dmasz & 2);
currentsz -= (currentsz & 2);
@@ -866,7 +861,7 @@ static void TAG(render_tri_strip_elts)( GLcontext *ctx,
currentsz = dmasz;
}
- if (flags & PRIM_PARITY) {
+ if ((flags & PRIM_PARITY) && count - start > 2) {
TAG(emit_elts)( ctx, elts+start, 1 );
}