ShaderCache: Fix crash at shutdown on shared shader compilation fail

This commit is contained in:
Stenzek 2019-04-20 23:41:53 +10:00
parent 5c95dc61fc
commit 9577d0641b
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ void ShaderCache::Shutdown()
{
// This may leave shaders uncommitted to the cache, but it's better than blocking shutdown
// until everything has finished compiling.
m_async_shader_compiler->StopWorkerThreads();
if (m_async_shader_compiler)
m_async_shader_compiler->StopWorkerThreads();
ClosePipelineUIDCache();
}