Skip to content
Permalink
Browse files

ShaderCache: Fix crash at shutdown on shared shader compilation fail

  • Loading branch information...
stenzek committed Apr 20, 2019
1 parent 5c95dc6 commit 9577d0641b08b86de19953c6b6d6971d77dc6321
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/Core/VideoCommon/ShaderCache.cpp
@@ -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();
}

0 comments on commit 9577d06

Please sign in to comment.
You can’t perform that action at this time.