From: Tommy Schultz Lassen Date: Wed, 11 Jul 2007 17:35:35 +0000 (+0000) Subject: r300: Corrected r300UpdateCulling; would only set font face if culling was set. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bd04c9851097ff4dfbfd73f6c62e1bc4143fc0d;p=mesa.git r300: Corrected r300UpdateCulling; would only set font face if culling was set. --- 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; }