summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2025-11-20 22:12:09 -0600
committeriwubcode <iwubcode@users.noreply.github.com>2025-11-21 01:17:45 -0600
commit75c66e35c68a791ab5415b1a120cc07321ad2e79 (patch)
treef58970ede05f51deb2d0bca5a667e95ff49ed2a8 /Source/Core/VideoCommon/GraphicsModSystem
parent4f30aaf1ca1ba410904422e55e2a14012ce8163e (diff)
VideoCommon: add method to async shader compiler to clear pending/completed work (used on shutdown), this will in turn clear up any resources that the worker items may have held onto
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
index a3c98ee9d7..0c4cf43227 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomShaderCache.cpp
@@ -24,10 +24,16 @@ CustomShaderCache::CustomShaderCache()
CustomShaderCache::~CustomShaderCache()
{
if (m_async_shader_compiler)
+ {
m_async_shader_compiler->StopWorkerThreads();
+ m_async_shader_compiler->ClearAllWork();
+ }
if (m_async_uber_shader_compiler)
+ {
m_async_uber_shader_compiler->StopWorkerThreads();
+ m_async_uber_shader_compiler->ClearAllWork();
+ }
}
void CustomShaderCache::RetrieveAsyncShaders()