summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-10-14 20:03:57 +1000
committerStenzek <stenzek@gmail.com>2018-10-14 20:03:57 +1000
commitc2fab7f01667c4ae1c9d039a5ace87ad21c4d98d (patch)
tree42d48ca5a608f3a3e59b9004895806d193031f55 /Source/Core/VideoCommon/ShaderCache.cpp
parent64515d08406957c027f99efce1140b355b94360c (diff)
ShaderCache: Don't create or load shader cache with Null backend
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
-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();