diff options
| author | magumagu <magumagu9@gmail.com> | 2014-04-04 16:17:14 -0700 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2014-04-11 14:53:12 -0700 |
| commit | fd9c1fa746616540dcad84bb44509d00ba739c6e (patch) | |
| tree | 1deeac79e9d8e385874d0e7284b5447e6410d5b4 /Source/Core/VideoCommon/PixelShaderManager.cpp | |
| parent | 7563e8c6f3cd0bf8b98d04549c3292626fac7a63 (diff) | |
VideoBackend: remove unused config vars.
No point to keeping around variables which are always "true".
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; |
