mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Don't set common globals from Video Backends
This commit is contained in:
@ -71,14 +71,9 @@ void VideoBackend::InitBackendInfo()
|
||||
|
||||
bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
||||
{
|
||||
g_gfx = std::make_unique<NullGfx>();
|
||||
g_renderer = std::make_unique<NullRenderer>();
|
||||
g_bounding_box = std::make_unique<NullBoundingBox>();
|
||||
g_vertex_manager = std::make_unique<VertexManager>();
|
||||
g_perf_query = std::make_unique<PerfQuery>();
|
||||
|
||||
InitializeShared();
|
||||
return true;
|
||||
return InitializeShared(std::make_unique<NullGfx>(), std::make_unique<VertexManager>(),
|
||||
std::make_unique<PerfQuery>(), std::make_unique<NullBoundingBox>(),
|
||||
std::make_unique<NullRenderer>(), std::make_unique<TextureCache>());
|
||||
}
|
||||
|
||||
void VideoBackend::Shutdown()
|
||||
|
Reference in New Issue
Block a user