gallium: changes to polygon mode weren't detected in draw_unfilled stage.
authorBrian <brian.paul@tungstengraphics.com>
Thu, 14 Feb 2008 21:15:52 +0000 (14:15 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 15 Feb 2008 01:59:24 +0000 (18:59 -0700)
Need to reset stage->tri = unfilled_first_try in unfilled_flush() so that the
front/back state is picked up.

src/mesa/pipe/draw/draw_unfilled.c

index 8bb9f3b5586b7bac9bf21219bed6872d490de8ad..8777cfdfc861b39ab00c2098faa93787e403d26a 100644 (file)
@@ -165,6 +165,8 @@ static void unfilled_flush( struct draw_stage *stage,
                            unsigned flags )
 {
    stage->next->flush( stage->next, flags );
+
+   stage->tri = unfilled_first_tri;
 }