From 9577d0641b08b86de19953c6b6d6971d77dc6321 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 20 Apr 2019 23:41:53 +1000 Subject: [PATCH] ShaderCache: Fix crash at shutdown on shared shader compilation fail --- Source/Core/VideoCommon/ShaderCache.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }