diff options
| author | Tony Wasserka <neobrainx@gmail.com> | 2014-04-12 00:06:02 +0200 |
|---|---|---|
| committer | Tony Wasserka <neobrainx@gmail.com> | 2014-04-12 00:06:02 +0200 |
| commit | b106dbc96e5fc0933f8ae5e1d655453efd419100 (patch) | |
| tree | 9ff7a50f3aa61ab893abf1c8d5809a02ffc0cae0 /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | a823edcc5b22d116bc848b7a859d7484390ba62f (diff) | |
| parent | fd9c1fa746616540dcad84bb44509d00ba739c6e (diff) | |
Merge pull request #235 from magumagu/videobackend-unused-config
VideoBackend: Remove unused config variables.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderManager.cpp b/Source/Core/VideoCommon/PixelShaderManager.cpp index bd24ce269a..aa5140d4df 100644 --- a/Source/Core/VideoCommon/PixelShaderManager.cpp +++ b/Source/Core/VideoCommon/PixelShaderManager.cpp @@ -100,7 +100,7 @@ void PixelShaderManager::SetConstants() s_bFogRangeAdjustChanged = false; } - if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting) // config check added because the code in here was crashing for me inside SetPSConstant4f + if (g_ActiveConfig.bEnablePixelLighting) // config check added because the code in here was crashing for me inside SetPSConstant4f { if (nLightsChanged[0] >= 0) { @@ -320,7 +320,7 @@ void PixelShaderManager::InvalidateXFRange(int start, int end) void PixelShaderManager::SetMaterialColorChanged(int index, u32 color) { - if (g_ActiveConfig.bEnablePixelLighting && g_ActiveConfig.backend_info.bSupportsPixelLighting) + if (g_ActiveConfig.bEnablePixelLighting) { constants.pmaterials[index][0] = (color >> 24) & 0xFF; constants.pmaterials[index][1] = (color >> 16) & 0xFF; |
