diff options
| author | nitsuja- <nitsuja-@hotmail.com> | 2010-12-19 20:59:23 +0000 |
|---|---|---|
| committer | nitsuja- <nitsuja-@hotmail.com> | 2010-12-19 20:59:23 +0000 |
| commit | 98fe8437ae7f6028a42a963ceadbeb74a74b25b0 (patch) | |
| tree | 26be07088d4be931eea6f6f1d62509b0fb0e607c /Source/Core/VideoCommon/Src/PixelShaderManager.cpp | |
| parent | 47454a4ed983f5a0c12b477c4eeb65ddf1f223fb (diff) | |
reduced frequency of dx9 ps_2_0 pixel generation errors, and made dx9 efb depth peek of 16-bit depth buffer not use 24-bit adjustment factor. shouldn't affect other the plugins.
(probably nobody else cares, but I need at least one video plugin that actually works on this computer)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6618 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/PixelShaderManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp index 76bc2e7be6..1e3ed1d321 100644 --- a/Source/Core/VideoCommon/Src/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/Src/PixelShaderManager.cpp @@ -215,7 +215,7 @@ void PixelShaderManager::SetConstants() s_bFogParamChanged = false; } - if (nLightsChanged[0] >= 0) + if (g_ActiveConfig.bEnablePixelLigting && nLightsChanged[0] >= 0) // config check added because the code in here was crashing for me inside SetPSConstant4f { // lights don't have a 1 to 1 mapping, the color component needs to be converted to 4 floats int istart = nLightsChanged[0] / 0x10; |
