diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2025-03-01 21:54:36 -0600 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2025-06-06 23:03:02 -0500 |
| commit | 12d178a8dfdf530a524c86bc96ff81a679641788 (patch) | |
| tree | fa73da49f9efe7a0c41e0d58df3de7d493d740c5 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | f910c1d934ec8888aeb440339c24c0b3f1d4782a (diff) | |
VideoCommon: initialize and shutdown the CustomResourceManager when the video thread initializes and shuts down
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 73035e0e1b..a4cc35fa09 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -41,6 +41,7 @@ #endif #include "VideoCommon/AbstractGfx.h" +#include "VideoCommon/Assets/CustomResourceManager.h" #include "VideoCommon/AsyncRequests.h" #include "VideoCommon/BPStructs.h" #include "VideoCommon/BoundingBox.h" @@ -341,12 +342,16 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx, } g_shader_cache->InitializeShaderCache(); + system.GetCustomResourceManager().Initialize(); return true; } void VideoBackendBase::ShutdownShared() { + auto& system = Core::System::GetInstance(); + system.GetCustomResourceManager().Shutdown(); + g_frame_dumper.reset(); g_presenter.reset(); @@ -369,7 +374,6 @@ void VideoBackendBase::ShutdownShared() m_initialized = false; - auto& system = Core::System::GetInstance(); VertexLoaderManager::Clear(); system.GetFifo().Shutdown(); } |
