projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f94d98
)
radeon: remove use of DD_FLATSHADE
author
Brian Paul
<brianp@vmware.com>
Mon, 12 Mar 2012 18:45:44 +0000
(12:45 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/radeon/radeon_tcl.c
b/src/mesa/drivers/dri/radeon/radeon_tcl.c
index 09f097c4b4d2fe6e31de743465b51b74fbe7060b..52e435c83bbf8d48cf94721804ee859fe7de0388 100644
(file)
--- 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;