summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/ShaderCache.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2025-12-22 13:33:25 -0500
committerGitHub <noreply@github.com>2025-12-22 13:33:25 -0500
commit38a89c6365239ebf2637b685c55ba1791842c2d4 (patch)
tree5962753d91599012bd86a1166d29976746de325b /Source/Core/VideoCommon/ShaderCache.cpp
parentbc03aa72ac7ad3c2244ad4d43c9d2e4d163165e2 (diff)
parent506e3782891da702725b625c103edc61d4279d71 (diff)
Merge pull request #14150 from iwubcode/clear_async_compiler_work_items
VideoCommon: add method to async shader compiler to clear pending/completed work, use on shutdown
Diffstat (limited to 'Source/Core/VideoCommon/ShaderCache.cpp')
-rw-r--r--Source/Core/VideoCommon/ShaderCache.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/ShaderCache.cpp b/Source/Core/VideoCommon/ShaderCache.cpp
index a3d07368f6..03dc21c937 100644
--- a/Source/Core/VideoCommon/ShaderCache.cpp
+++ b/Source/Core/VideoCommon/ShaderCache.cpp
@@ -109,7 +109,10 @@ void ShaderCache::Shutdown()
// This may leave shaders uncommitted to the cache, but it's better than blocking shutdown
// until everything has finished compiling.
if (m_async_shader_compiler)
+ {
m_async_shader_compiler->StopWorkerThreads();
+ m_async_shader_compiler->ClearAllWork();
+ }
ClosePipelineUIDCache();
}