llvmpipe: fix front/back tri culling mix-up
authorBrian Paul <brianp@vmware.com>
Mon, 17 May 2010 17:43:43 +0000 (11:43 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 17 May 2010 17:43:43 +0000 (11:43 -0600)
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index fbbfa3275f36b84581c4db4689f95f61f40b1f20..306cb6e27d2895dcb8a667ae332a4441549fbd54 100644 (file)
@@ -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: