From: Brian Date: Thu, 14 Feb 2008 21:15:52 +0000 (-0700) Subject: gallium: changes to polygon mode weren't detected in draw_unfilled stage. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f32c532376bc3394f8fce70f95156b49fcc4fec;p=mesa.git gallium: changes to polygon mode weren't detected in draw_unfilled stage. Need to reset stage->tri = unfilled_first_try in unfilled_flush() so that the front/back state is picked up. --- diff --git a/src/mesa/pipe/draw/draw_unfilled.c b/src/mesa/pipe/draw/draw_unfilled.c index 8bb9f3b5586..8777cfdfc86 100644 --- a/src/mesa/pipe/draw/draw_unfilled.c +++ b/src/mesa/pipe/draw/draw_unfilled.c @@ -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; }