Mesa (gallium-front-ccw): llvmpipe: fix front/back tri culling mix-up

Brian Paul brianp at kemper.freedesktop.org
Mon May 17 17:43:52 UTC 2010


Module: Mesa
Branch: gallium-front-ccw
Commit: e5ee8b4fae2983512f9c70f2f021fc8c35e62a75
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5ee8b4fae2983512f9c70f2f021fc8c35e62a75

Author: Brian Paul <brianp at vmware.com>
Date:   Mon May 17 11:43:43 2010 -0600

llvmpipe: fix front/back tri culling mix-up

---

 src/gallium/drivers/llvmpipe/lp_setup_tri.c |    4 ++--
 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 fbbfa32..306cb6e 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:




More information about the mesa-commit mailing list