radeon: remove use of DD_FLATSHADE
authorBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 18:45:44 +0000 (12:45 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 12 Mar 2012 18:47:03 +0000 (12:47 -0600)
This got missed earlier <sigh>.

src/mesa/drivers/dri/radeon/radeon_tcl.c

index 09f097c4b4d2fe6e31de743465b51b74fbe7060b..52e435c83bbf8d48cf94721804ee859fe7de0388 100644 (file)
@@ -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;