summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorTommy Schultz Lassen <mesa3d@krynn.dk>2007-07-11 17:35:35 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-07-11 17:37:44 +0000
commit4bd04c9851097ff4dfbfd73f6c62e1bc4143fc0d (patch)
tree5023cdb80dc968f37feb6832d55c3019243c3e7b /src/mesa
parent922dadf422440e120c7123a728454e517289e430 (diff)
r300: Corrected r300UpdateCulling; would only set font face if culling was set.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_state.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c
index b5cf21d644..6e1eeb857a 100644
--- a/src/mesa/drivers/dri/r300/r300_state.c
+++ b/src/mesa/drivers/dri/r300/r300_state.c
@@ -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;
}