mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-22 04:24:56 +00:00
ShaderCache: Fix crash at shutdown on shared shader compilation fail
This commit is contained in:
parent
5c95dc61fc
commit
9577d0641b
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue