summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-07-27 20:52:20 +1000
committerStenzek <stenzek@gmail.com>2017-07-30 17:43:59 +1000
commite968c191ffc7bf2899e8f56f39f988c36b54034c (patch)
treee3e4c92319967bd445a6add258c1ab3d41aa30ac /Source/Core/VideoCommon/VideoConfig.cpp
parentc8f31656cb1c5f5e3c83a5b977fd822e987cb596 (diff)
Ubershaders: Support per-pixel lighting
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index 2b0b169649..c277386f71 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -219,21 +219,14 @@ u32 VideoConfig::GetShaderPrecompilerThreads() const
return GetNumAutoShaderCompilerThreads();
}
-bool VideoConfig::CanUseUberShaders() const
-{
- // Ubershaders are currently incompatible with per-pixel lighting.
- return !bEnablePixelLighting;
-}
-
bool VideoConfig::CanPrecompileUberShaders() const
{
// We don't want to precompile ubershaders if they're never going to be used.
- return bPrecompileUberShaders && (bBackgroundShaderCompiling || bDisableSpecializedShaders) &&
- CanUseUberShaders();
+ return bPrecompileUberShaders && (bBackgroundShaderCompiling || bDisableSpecializedShaders);
}
bool VideoConfig::CanBackgroundCompileShaders() const
{
// We require precompiled ubershaders to background compile shaders.
- return bBackgroundShaderCompiling && bPrecompileUberShaders && CanUseUberShaders();
+ return bBackgroundShaderCompiling && bPrecompileUberShaders;
}