summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-14 14:15:52 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-14 18:59:24 -0700
commit4f32c532376bc3394f8fce70f95156b49fcc4fec (patch)
treefee2c1e12203ef11793c34b8b8d55255e8ab45e9
parentb08102a8f3ef558743f5f952c726ba2c28b6e82e (diff)
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.
-rw-r--r--src/mesa/pipe/draw/draw_unfilled.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_unfilled.c b/src/mesa/pipe/draw/draw_unfilled.c
index 8bb9f3b558..8777cfdfc8 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;
}