summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2005-10-29 00:27:01 +0000
committerEric Anholt <[email protected]>2005-10-29 00:27:01 +0000
commitaba878d8c2d0d75b0762f7d8ae191fa438fc7d6a (patch)
tree00bba5ad9473ba8dad85178c76eb01f71bb7650d /src/mesa/drivers/dri/r200
parentd7d41ceeb030d43974b713f8f0af44e972fa4d94 (diff)
Bug #4901: Correct secondary color emission when lighting is turned off, tested
with seccolor on rv200 and r200. Submitted by: sroland
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_tcl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_tcl.c b/src/mesa/drivers/dri/r200/r200_tcl.c
index f6461a164e6..c41622debe5 100644
--- a/src/mesa/drivers/dri/r200/r200_tcl.c
+++ b/src/mesa/drivers/dri/r200/r200_tcl.c
@@ -395,9 +395,10 @@ static GLboolean r200_run_tcl_render( GLcontext *ctx,
*/
if (ctx->Light.Enabled) {
inputs |= VERT_BIT_NORMAL;
- if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) {
- inputs |= VERT_BIT_COLOR1;
- }
+ }
+
+ if (ctx->_TriangleCaps & DD_SEPARATE_SPECULAR) {
+ inputs |= VERT_BIT_COLOR1;
}
if ( (ctx->Fog.FogCoordinateSource == GL_FOG_COORD) && ctx->Fog.Enabled ) {