mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 23:18:20 +02:00
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:
parent
d7d41ceeb0
commit
aba878d8c2
2 changed files with 8 additions and 6 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue