diff options
author | Tommy Schultz Lassen <[email protected]> | 2007-07-11 17:35:35 +0000 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2007-07-11 17:37:44 +0000 |
commit | 4bd04c9851097ff4dfbfd73f6c62e1bc4143fc0d (patch) | |
tree | 5023cdb80dc968f37feb6832d55c3019243c3e7b /src/mesa/drivers/dri/r300 | |
parent | 922dadf422440e120c7123a728454e517289e430 (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.c | 9 |
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; } |