i965: Fix gen6 front cull mode.
authorEric Anholt <eric@anholt.net>
Fri, 11 Jun 2010 22:14:22 +0000 (15:14 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 13 Jun 2010 04:47:32 +0000 (21:47 -0700)
src/mesa/drivers/dri/i965/gen6_sf_state.c

index 8d96b44f1dc1456c3374bebd003422715e2db63d..51940efb44355616a38ec9442030a55f846ddc7a 100644 (file)
@@ -87,7 +87,7 @@ upload_sf_state(struct brw_context *brw)
    if (ctx->Polygon.CullFlag) {
       switch (ctx->Polygon.CullFaceMode) {
       case GL_FRONT:
-        dw3 |= GEN6_SF_CULL_BOTH;
+        dw3 |= GEN6_SF_CULL_FRONT;
         break;
       case GL_BACK:
         dw3 |= GEN6_SF_CULL_BACK;