front/back-face determination was wrong
authorBrian <brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 17:59:43 +0000 (11:59 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 12 Jul 2007 17:59:43 +0000 (11:59 -0600)
src/mesa/pipe/draw/draw_twoside.c

index 88e164ec5eb76118bc86b0c12b4f42709fbb938c..e8221639bb876f6c145175642405f939312673df 100644 (file)
@@ -51,7 +51,7 @@ static void twoside_begin( struct prim_stage *stage )
 {
    struct twoside_stage *twoside = twoside_stage(stage);
 
-   twoside->facing = (stage->draw->setup.front_winding == PIPE_WINDING_CW) ? -1 : 1;
+   twoside->facing = (stage->draw->setup.front_winding == PIPE_WINDING_CW) ? 1 : -1;
 
    stage->next->begin( stage->next );
 }