mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 05:38:16 +02:00
Fix lineloops.
This commit is contained in:
parent
bcc513ebf5
commit
6e550baa0a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue