Skip to content

Commit

Permalink
ShaderCache: Fix crash at shutdown on shared shader compilation fail
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Apr 21, 2019
1 parent 5c95dc6 commit 9577d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/Core/VideoCommon/ShaderCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 9577d06

Please sign in to comment.