diff options
author | Jesse Talavera <jesse@jesse.tg> | 2023-12-15 08:53:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-15 14:53:31 +0100 |
commit | c867a7f1c09b3c5f07e0772fcddabce07bcd7fe7 (patch) | |
tree | c8f7fc0b351ff945b4e581c63873dbd460b2aa32 /src/NDS.cpp | |
parent | 6f47c9ed4c0e5b1035089805f272c6965343f113 (diff) |
Make the initial 3D renderer configurable via `NDSArgs` (#1913)
* Allow 3D renderers to be created without passing `GPU` to the constructor
* Make the initial 3D renderer configurable via `NDSArgs`
* Fix a compiler error
Diffstat (limited to 'src/NDS.cpp')
-rw-r--r-- | src/NDS.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/NDS.cpp b/src/NDS.cpp index 5d2a1ce..4fa5eef 100644 --- a/src/NDS.cpp +++ b/src/NDS.cpp @@ -94,7 +94,7 @@ NDS::NDS(NDSArgs&& args, int type) noexcept : ARM9BIOS(args.ARM9BIOS), JIT(*this, args.JIT), SPU(*this, args.BitDepth, args.Interpolation), - GPU(*this), + GPU(*this, std::move(args.Renderer3D)), SPI(*this, std::move(args.Firmware)), RTC(*this), Wifi(*this), @@ -1322,7 +1322,7 @@ void NDS::SetIRQ(u32 cpu, u32 irq) { CPUStop &= ~CPUStop_Sleep; CPUStop |= CPUStop_Wakeup; - GPU.GPU3D.RestartFrame(); + GPU.GPU3D.RestartFrame(GPU); } } } |