mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-28 01:49:33 -06:00
VideoCommon: initialize and shutdown the CustomResourceManager when the video thread initializes and shuts down
This commit is contained in:
@ -41,6 +41,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "VideoCommon/AbstractGfx.h"
|
#include "VideoCommon/AbstractGfx.h"
|
||||||
|
#include "VideoCommon/Assets/CustomResourceManager.h"
|
||||||
#include "VideoCommon/AsyncRequests.h"
|
#include "VideoCommon/AsyncRequests.h"
|
||||||
#include "VideoCommon/BPStructs.h"
|
#include "VideoCommon/BPStructs.h"
|
||||||
#include "VideoCommon/BoundingBox.h"
|
#include "VideoCommon/BoundingBox.h"
|
||||||
@ -341,12 +342,16 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_shader_cache->InitializeShaderCache();
|
g_shader_cache->InitializeShaderCache();
|
||||||
|
system.GetCustomResourceManager().Initialize();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoBackendBase::ShutdownShared()
|
void VideoBackendBase::ShutdownShared()
|
||||||
{
|
{
|
||||||
|
auto& system = Core::System::GetInstance();
|
||||||
|
system.GetCustomResourceManager().Shutdown();
|
||||||
|
|
||||||
g_frame_dumper.reset();
|
g_frame_dumper.reset();
|
||||||
g_presenter.reset();
|
g_presenter.reset();
|
||||||
|
|
||||||
@ -369,7 +374,6 @@ void VideoBackendBase::ShutdownShared()
|
|||||||
|
|
||||||
m_initialized = false;
|
m_initialized = false;
|
||||||
|
|
||||||
auto& system = Core::System::GetInstance();
|
|
||||||
VertexLoaderManager::Clear();
|
VertexLoaderManager::Clear();
|
||||||
system.GetFifo().Shutdown();
|
system.GetFifo().Shutdown();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user