diff options
author | Dave Airlie <airlied@redhat.com> | 2009-12-21 10:21:28 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-21 10:21:28 +1000 |
commit | 393857a2f59df43d60fd4f1b7974349261bc45da (patch) | |
tree | 5d22cb3ecbd8b4fe84ecef87ef842f88209fcdc8 /src/mesa/drivers/dri/r600/r700_state.c | |
parent | 32d737397c2ac21a553a5557914fa741be89c8a9 (diff) |
r600: fix glFrontFace(GL_CW)
fd.o bug #25290
Suggested fix from Rafael Monica
Diffstat (limited to 'src/mesa/drivers/dri/r600/r700_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r600/r700_state.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/r600/r700_state.c b/src/mesa/drivers/dri/r600/r700_state.c index d7420678ff..7b1fa73224 100644 --- a/src/mesa/drivers/dri/r600/r700_state.c +++ b/src/mesa/drivers/dri/r600/r700_state.c @@ -1227,13 +1227,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); |