summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2018-10-14 12:30:32 +0100
committerGitHub <noreply@github.com>2018-10-14 12:30:32 +0100
commitb5d855caf7a2bed70edca0385922ffc6dfb5286f (patch)
tree1e79d5a83a258d10669d7a9919e5738bb0998268 /Source/Core/VideoCommon
parent660fb3fca0f4f0b291ade7b421e231330a69ae7e (diff)
parente3f475b30e085c32f9dc56bf59c270dcbe80ee5e (diff)
Merge pull request #7496 from stenzek/null-shader-cache
ShaderCache: Don't create or load shader cache with Null backend
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index f369118962..299b0d1bca 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/Source/Core/VideoCommon/ShaderCache.cpp
@@ -35,7 +35,7 @@ bool ShaderCache::Initialize()
m_async_shader_compiler->ResizeWorkerThreads(g_ActiveConfig.GetShaderPrecompilerThreads());
// Load shader and UID caches.
- if (g_ActiveConfig.bShaderCache)
+ if (g_ActiveConfig.bShaderCache && m_api_type != APIType::Nothing)
{
LoadShaderCaches();
LoadPipelineUIDCache();