diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2019-09-21 11:23:31 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2019-09-22 08:35:51 +0200 |
commit | d6e830d8771e6ed1db8683385dc2d857d1ddca5c (patch) | |
tree | e6b81ab9bc875fd31b67406144b20a98e8d3f15a /src/core/hle/service/nvflinger/nvflinger.cpp | |
parent | Rebase (diff) | |
download | yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar.gz yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar.bz2 yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar.lz yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar.xz yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.tar.zst yuzu-d6e830d8771e6ed1db8683385dc2d857d1ddca5c.zip |
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
-rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp index f9db79370..04adfc7d8 100644 --- a/src/core/hle/service/nvflinger/nvflinger.cpp +++ b/src/core/hle/service/nvflinger/nvflinger.cpp @@ -29,7 +29,8 @@ namespace Service::NVFlinger { constexpr s64 frame_ticks = static_cast<s64>(Core::Timing::BASE_CLOCK_RATE / 60); constexpr s64 frame_ticks_30fps = static_cast<s64>(Core::Timing::BASE_CLOCK_RATE / 30); -NVFlinger::NVFlinger(Core::Timing::CoreTiming& core_timing) : core_timing{core_timing} { +NVFlinger::NVFlinger(Core::Timing::CoreTiming& core_timing, Core::System& system) + : core_timing{core_timing}, system(system) { displays.emplace_back(0, "Default"); displays.emplace_back(1, "External"); displays.emplace_back(2, "Edid"); @@ -185,11 +186,9 @@ void NVFlinger::Compose() { MicroProfileFlip(); if (!buffer) { - auto& system_instance = Core::System::GetInstance(); - // There was no queued buffer to draw, render previous frame - system_instance.GetPerfStats().EndGameFrame(); - system_instance.GPU().SwapBuffers({}); + system.GetPerfStats().EndGameFrame(); + system.GPU().SwapBuffers({}); continue; } |