Merge pull request #7496 from stenzek/null-shader-cache

ShaderCache: Don't create or load shader cache with Null backend
This commit is contained in:
Tilka 2018-10-14 12:30:32 +01:00 committed by GitHub
commit b5d855caf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -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();