summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-04-20 23:41:53 +1000
committerStenzek <stenzek@gmail.com>2019-04-21 14:28:14 +1000
commit9577d0641b08b86de19953c6b6d6971d77dc6321 (patch)
tree864b157869032b837bc34ead50aa2e803c5d4612 /Source/Core/VideoCommon/ShaderCache.cpp
parent5c95dc61fcc11126694bfb8c963dfe418bdaa692 (diff)
ShaderCache: Fix crash at shutdown on shared shader compilation fail
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index 3e4ed24662..6ac4827165 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/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();
}