From: Brian Paul Date: Mon, 17 May 2010 17:43:43 +0000 (-0600) Subject: llvmpipe: fix front/back tri culling mix-up X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5ee8b4fae2983512f9c70f2f021fc8c35e62a75;p=mesa.git llvmpipe: fix front/back tri culling mix-up --- 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: