Renderer: Add a base Initialize() method to match Shutdown()

This commit is contained in:
Stenzek
2018-12-04 17:36:08 +10:00
parent 38479dd783
commit 1adcd47dcb
10 changed files with 51 additions and 28 deletions
@@ -64,7 +64,7 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
g_framebuffer_manager = std::make_unique<FramebufferManagerBase>();
g_texture_cache = std::make_unique<TextureCache>();
g_shader_cache = std::make_unique<VideoCommon::ShaderCache>();
return g_shader_cache->Initialize();
return g_renderer->Initialize() && g_shader_cache->Initialize();
}
void VideoBackend::Shutdown()