Ubershaders: Support per-pixel lighting

This commit is contained in:
Stenzek committed 2017-07-30 17:43:59 +10:00
1 parent c8f31656cb
commit e968c191ff
12 files changed
+311 -303

No files matched your search

@@ -593,11 +593,8 @@ void PixelShaderCache::Shutdown()
bool PixelShaderCache::SetShader()
{
if (g_ActiveConfig.CanUseUberShaders() &&
(g_ActiveConfig.bDisableSpecializedShaders || g_ActiveConfig.bForcePixelUberShaders))
{
if (g_ActiveConfig.bDisableSpecializedShaders || g_ActiveConfig.bForcePixelUberShaders)
return SetUberShader();
}
PixelShaderUid uid = GetPixelShaderUid();
if (last_entry && uid == last_uid)