From: Keith Whitwell Date: Tue, 10 Jun 2008 13:45:34 +0000 (+0100) Subject: draw: fix edgeflags on clipped poly emit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=14a13e3767f080a48a4ae01f803dd0bc8754f441;p=mesa.git draw: fix edgeflags on clipped poly emit --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c index c11ed934a46..77ccddac4ab 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_clip.c +++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c @@ -171,7 +171,7 @@ static void emit_poly( struct draw_stage *stage, header.flags = DRAW_PIPE_RESET_STIPPLE | edge_first | edge_middle; header.pad = 0; - for (i = 2; i < n; i++, header.flags = 0) { + for (i = 2; i < n; i++, header.flags = edge_middle) { header.v[0] = inlist[i-1]; header.v[1] = inlist[i]; header.v[2] = inlist[0]; /* keep in v[2] for flatshading */