draw: fix edgeflags on clipped poly emit
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 Jun 2008 13:45:34 +0000 (14:45 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 10 Jun 2008 13:48:57 +0000 (14:48 +0100)
src/gallium/auxiliary/draw/draw_pipe_clip.c

index c11ed934a460b8372a5d63543320cc93e0767465..77ccddac4abfb85733fd2cb0adcffd8d9b883040 100644 (file)
@@ -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 */