mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-10-10 01:59:22 +00:00
VideoCommon: Move some common initialization logic to RenderBase
This commit is contained in:
parent
277829d842
commit
238a70b006
22 changed files with 67 additions and 87 deletions
|
@ -163,11 +163,12 @@ bool VideoBackend::Initialize(void* window_handle)
|
|||
void VideoBackend::Video_Prepare()
|
||||
{
|
||||
// internal interfaces
|
||||
g_renderer = std::make_unique<Renderer>(m_window_handle);
|
||||
g_renderer = std::make_unique<Renderer>();
|
||||
g_texture_cache = std::make_unique<TextureCache>();
|
||||
g_vertex_manager = std::make_unique<VertexManager>();
|
||||
g_perf_query = std::make_unique<PerfQuery>();
|
||||
g_xfb_encoder = std::make_unique<XFBEncoder>();
|
||||
g_renderer->InitializeCommon();
|
||||
ShaderCache::Init();
|
||||
ShaderConstantsManager::Init();
|
||||
StaticShaderCache::Init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue