r300: Corrected r300UpdateCulling; would only set font face if culling was set.
authorTommy Schultz Lassen <mesa3d@krynn.dk>
Wed, 11 Jul 2007 17:35:35 +0000 (17:35 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Wed, 11 Jul 2007 17:37:44 +0000 (17:37 +0000)
src/mesa/drivers/dri/r300/r300_state.c

index b5cf21d644a32afe1a84f27a1c3467d67766129a..6e1eeb857a4784d7949a5330aeb2dd27d91e078b 100644 (file)
@@ -325,12 +325,11 @@ static void r300UpdateCulling(GLcontext * ctx)
                        val = R300_CULL_FRONT;
                else
                        val = R300_CULL_BACK;
-
-               if (ctx->Polygon.FrontFace == GL_CW)
-                       val |= R300_FRONT_FACE_CW;
-               else
-                       val |= R300_FRONT_FACE_CCW;
        }
+       if (ctx->Polygon.FrontFace == GL_CW)
+               val |= R300_FRONT_FACE_CW;
+       else
+               val |= R300_FRONT_FACE_CCW;
        r300->hw.cul.cmd[R300_CUL_CULL] = val;
 }