aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300
diff options
context:
space:
mode:
authorTommy Schultz Lassen <[email protected]>2007-07-11 17:35:35 +0000
committerOliver McFadden <[email protected]>2007-07-11 17:37:44 +0000
commit4bd04c9851097ff4dfbfd73f6c62e1bc4143fc0d (patch)
tree5023cdb80dc968f37feb6832d55c3019243c3e7b /src/mesa/drivers/dri/r300
parent922dadf422440e120c7123a728454e517289e430 (diff)
r300: Corrected r300UpdateCulling; would only set font face if culling was set.
Diffstat (limited to 'src/mesa/drivers/dri/r300')
-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 b5cf21d644a..6e1eeb857a4 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;
}