Bug #4901: Correct secondary color emission when lighting is turned off, tested

with seccolor on rv200 and r200.

Submitted by:	sroland
This commit is contained in:
Eric Anholt 2005-10-29 00:27:01 +00:00
parent d7d41ceeb0
commit aba878d8c2
2 changed files with 8 additions and 6 deletions

View file

@ -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 ) {

View file

@ -391,9 +391,10 @@ static GLboolean radeon_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 ) {