From: Brian Paul Date: Mon, 12 Mar 2012 18:45:44 +0000 (-0600) Subject: radeon: remove use of DD_FLATSHADE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82195815ec0422d5a762397b8717239861dc6800;p=mesa.git radeon: remove use of DD_FLATSHADE This got missed earlier . --- diff --git a/src/mesa/drivers/dri/radeon/radeon_tcl.c b/src/mesa/drivers/dri/radeon/radeon_tcl.c index 09f097c4b4d..52e435c83bb 100644 --- a/src/mesa/drivers/dri/radeon/radeon_tcl.c +++ b/src/mesa/drivers/dri/radeon/radeon_tcl.c @@ -265,7 +265,7 @@ void radeonTclPrimitive( struct gl_context *ctx, se_cntl = rmesa->hw.set.cmd[SET_SE_CNTL]; se_cntl &= ~RADEON_FLAT_SHADE_VTX_LAST; - if (prim == GL_POLYGON && (ctx->_TriangleCaps & DD_FLATSHADE)) + if (prim == GL_POLYGON && ctx->Light.ShadeModel == GL_FLAT) se_cntl |= RADEON_FLAT_SHADE_VTX_0; else se_cntl |= RADEON_FLAT_SHADE_VTX_LAST;