mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-12 22:00:23 +02:00
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.
This commit is contained in:
1 parent
186b2f4e92
commit
b0d244b772
10 files changed
+99
-95
No files matched your search
@@ -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<AbstractGfx> 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();
|
||||
|
||||
Reference in new issue
Block a user