diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-28 14:53:19 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 19:41:23 +1300 |
| commit | 58b70b2fb2abac12dddd947a69f7fa5b41b1a8b7 (patch) | |
| tree | f053add433fb414fd60cf74f24641d001c0bf664 /Source/Core/VideoBackends/Software/SWmain.cpp | |
| parent | d37f83ffeba218c6ef94b78532aed50b1ebbc4a4 (diff) | |
Don't set common globals from Video Backends
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWmain.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWmain.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 46101afe77..8703ea4b4d 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -106,14 +106,10 @@ bool VideoSoftware::Initialize(const WindowSystemInfo& wsi) Clipper::Init(); Rasterizer::Init(); - g_gfx = std::make_unique<SWGfx>(std::move(window)); - g_bounding_box = std::make_unique<SWBoundingBox>(); - g_vertex_manager = std::make_unique<SWVertexLoader>(); - g_perf_query = std::make_unique<PerfQuery>(); - - InitializeShared(); - - return true; + return InitializeShared(std::make_unique<SWGfx>(std::move(window)), + std::make_unique<SWVertexLoader>(), std::make_unique<PerfQuery>(), + std::make_unique<SWBoundingBox>(), std::make_unique<SWRenderer>(), + std::make_unique<TextureCache>()); } void VideoSoftware::Shutdown() |
