summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2001-03-18 00:46:04 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2001-03-18 00:46:04 +0000
commit6e550baa0a2b72bb0e4f5b19fdf74e5d3f377565 (patch)
tree30192bc632ec9e1bd6e7efad2c181e767b9fcade /src/mesa
parentbcc513ebf5011a307ec7b1b383f8522e9dc28404 (diff)
Fix lineloops.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/common/t_dd_dmatmp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/common/t_dd_dmatmp.h b/src/mesa/drivers/common/t_dd_dmatmp.h
index db06f0f92c..c88c547c94 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.6 2001/03/12 00:48:44 gareth Exp $ */
+/* $Id: t_dd_dmatmp.h,v 1.7 2001/03/18 00:46:04 keithw Exp $ */
/*
* Mesa 3-D graphics library
@@ -235,7 +235,7 @@ static void TAG(render_line_loop_verts)( GLcontext *ctx,
currentsz = dmasz;
}
- if (flags & PRIM_END)
+ if (start < count - 1 && (flags & PRIM_END))
EMIT_VERTS( ctx, start, 1 );
} else {