mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
VideoCommon: Eliminate static state in Renderer
This commit is contained in:
parent
de230f3ebe
commit
277829d842
23 changed files with 99 additions and 136 deletions
|
@ -149,7 +149,7 @@ void VideoBackend::Video_Prepare()
|
|||
ProgramShaderCache::Init();
|
||||
g_texture_cache = std::make_unique<TextureCache>();
|
||||
g_sampler_cache = std::make_unique<SamplerCache>();
|
||||
Renderer::Init();
|
||||
static_cast<Renderer*>(g_renderer.get())->Init();
|
||||
TextureConverter::Init();
|
||||
BoundingBox::Init();
|
||||
}
|
||||
|
@ -166,7 +166,7 @@ void VideoBackend::Video_Cleanup()
|
|||
// The following calls are NOT Thread Safe
|
||||
// And need to be called from the video thread
|
||||
CleanupShared();
|
||||
Renderer::Shutdown();
|
||||
static_cast<Renderer*>(g_renderer.get())->Shutdown();
|
||||
BoundingBox::Shutdown();
|
||||
TextureConverter::Shutdown();
|
||||
g_sampler_cache.reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue