r600: fix glFrontFace(GL_CW)
authorDave Airlie <airlied@redhat.com>
Mon, 21 Dec 2009 00:21:28 +0000 (10:21 +1000)
committerAlex Deucher <alexdeucher@gmail.com>
Mon, 21 Dec 2009 15:40:19 +0000 (10:40 -0500)
fd.o bug #25290

Suggested fix from Rafael Monica

src/mesa/drivers/dri/r600/r700_state.c

index e763d2803c7d4073a348df3b06f8b5efc9beaf16..9b7f7a7d83a4574de7d5fb2de7834742a2140dae 100644 (file)
@@ -1168,13 +1168,8 @@ static void r700UpdatePolygonMode(GLcontext * ctx)
                /* Handle GL_CW (clock wise and GL_CCW (counter clock wise)
                 * correctly by selecting the correct front and back face
                 */
-               if (ctx->Polygon.FrontFace == GL_CCW) {
-                       f = ctx->Polygon.FrontMode;
-                       b = ctx->Polygon.BackMode;
-               } else {
-                       f = ctx->Polygon.BackMode;
-                       b = ctx->Polygon.FrontMode;
-               }
+               f = ctx->Polygon.FrontMode;
+               b = ctx->Polygon.BackMode;
 
                /* Enable polygon mode */
                SETfield(r700->PA_SU_SC_MODE_CNTL.u32All, X_DUAL_MODE, POLY_MODE_shift, POLY_MODE_mask);