Fix "Disable Lighting" in D3D9 and D3D11.

Fixes issue 3185.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7498 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX
2011-04-30 17:34:08 +00:00
parent 8791c1c372
commit fe2d09576d
2 changed files with 11 additions and 11 deletions

View File

@ -289,17 +289,6 @@ void GLVertexFormat::EnableComponents(u32 components)
}
}
// Disable Lighting
// TODO - Is this a good spot for this code?
if (g_ActiveConfig.bDisableLighting)
{
for (u32 i = 0; i < xfregs.numChan.numColorChans; i++)
{
xfregs.alpha[i].enablelighting = false;
xfregs.color[i].enablelighting = false;
}
}
s_prevcomponents = components;
}
}