From b0d244b77232508dcb9bcf3bf9efd9f57797bf3b Mon Sep 17 00:00:00 2001 From: Lioncache Date: Mon, 18 Dec 2023 21:31:32 -0500 Subject: VideoCommon/Fifo: Pass system instance through FifoManager constructor Given how many member functions make use of the system instance, it's likely just better to pass the system instance in on construction. Makes the interface a little less noisy to use. --- Source/Core/VideoCommon/VideoBackendBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp') diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 3d00a1e7ec..b34e8d8c02 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -93,7 +93,7 @@ std::string VideoBackendBase::BadShaderFilename(const char* shader_stage, int co void VideoBackendBase::Video_ExitLoop() { auto& system = Core::System::GetInstance(); - system.GetFifo().ExitGpuLoop(system); + system.GetFifo().ExitGpuLoop(); } // Run from the CPU thread (from VideoInterface.cpp) @@ -379,7 +379,7 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr gfx, auto& system = Core::System::GetInstance(); auto& command_processor = system.GetCommandProcessor(); command_processor.Init(system); - system.GetFifo().Init(system); + system.GetFifo().Init(); system.GetPixelEngine().Init(system); BPInit(); VertexLoaderManager::Init(); -- cgit v1.2.3