summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-17 11:43:43 -0600
committerBrian Paul <[email protected]>2010-05-17 11:43:43 -0600
commite5ee8b4fae2983512f9c70f2f021fc8c35e62a75 (patch)
treed1de8d99050d6c5e336c15cd5a751b715ec6bb5d
parent5ebd2fa7dacee1b517e50ac89af66800fe47af22 (diff)
llvmpipe: fix front/back tri culling mix-up
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index fbbfa3275f3..306cb6e27d2 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -674,10 +674,10 @@ lp_setup_choose_triangle( struct lp_setup_context *setup )
case PIPE_FACE_NONE:
setup->triangle = triangle_both;
break;
- case PIPE_FACE_FRONT:
+ case PIPE_FACE_BACK:
setup->triangle = setup->ccw_is_frontface ? triangle_ccw : triangle_cw;
break;
- case PIPE_FACE_BACK:
+ case PIPE_FACE_FRONT:
setup->triangle = setup->ccw_is_frontface ? triangle_cw : triangle_ccw;
break;
default: