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 committed 2011-04-30 17:34:08 +00:00
1 parent 8791c1c372
commit fe2d09576d
2 files changed
+11 -11

No files matched your search

@@ -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;
}
}