mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-01 07:52:37 +00:00
Renderer: Add a base Initialize() method to match Shutdown()
This commit is contained in:
parent
38479dd783
commit
1adcd47dcb
10 changed files with 51 additions and 28 deletions
|
@ -179,7 +179,8 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
|||
g_texture_cache = std::make_unique<TextureCache>();
|
||||
g_sampler_cache = std::make_unique<SamplerCache>();
|
||||
g_shader_cache = std::make_unique<VideoCommon::ShaderCache>();
|
||||
static_cast<Renderer*>(g_renderer.get())->Init();
|
||||
if (!g_renderer->Initialize())
|
||||
return false;
|
||||
TextureConverter::Init();
|
||||
BoundingBox::Init(g_renderer->GetTargetWidth(), g_renderer->GetTargetHeight());
|
||||
return g_shader_cache->Initialize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue