ShaderCache: Fix crash at shutdown on shared shader compilation fail
This commit is contained in:
parent
5c95dc61fc
commit
9577d0641b
|
@ -94,7 +94,9 @@ void ShaderCache::Shutdown()
|
||||||
{
|
{
|
||||||
// This may leave shaders uncommitted to the cache, but it's better than blocking shutdown
|
// This may leave shaders uncommitted to the cache, but it's better than blocking shutdown
|
||||||
// until everything has finished compiling.
|
// until everything has finished compiling.
|
||||||
m_async_shader_compiler->StopWorkerThreads();
|
if (m_async_shader_compiler)
|
||||||
|
m_async_shader_compiler->StopWorkerThreads();
|
||||||
|
|
||||||
ClosePipelineUIDCache();
|
ClosePipelineUIDCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue