summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/draw/draw_twoside.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-13 15:02:50 -0600
committerBrian <[email protected]>2007-08-13 15:02:50 -0600
commitc271078048770a31028836eda684a6dbffc13cf5 (patch)
tree7373d346e2bcbfd65b002bb58fca2ab9d511835a /src/mesa/pipe/draw/draw_twoside.c
parentfaa14a9ded2ddb784302b4634f0ca40c51ec1c4b (diff)
with Y=0=top, front/back determination is negated
Diffstat (limited to 'src/mesa/pipe/draw/draw_twoside.c')
-rw-r--r--src/mesa/pipe/draw/draw_twoside.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/draw/draw_twoside.c b/src/mesa/pipe/draw/draw_twoside.c
index fdda6b362fa..20b2b4a8aa4 100644
--- a/src/mesa/pipe/draw/draw_twoside.c
+++ b/src/mesa/pipe/draw/draw_twoside.c
@@ -53,9 +53,9 @@ static void twoside_begin( struct draw_stage *stage )
/*
* We'll multiply the primitive's determinant by this sign to determine
* if the triangle is back-facing (negative).
- * sign = 1 for CCW, -1 for CW
+ * sign = -1 for CCW, +1 for CW
*/
- twoside->sign = (stage->draw->setup.front_winding == PIPE_WINDING_CCW) ? 1 : -1;
+ twoside->sign = (stage->draw->setup.front_winding == PIPE_WINDING_CCW) ? -1 : 1;
stage->next->begin( stage->next );
}