summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvnflinger
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-18 00:45:39 +0100
committerLiam <byteslice@airmail.cc>2024-01-18 00:45:39 +0100
commitce895807499ef664f244eb9f435b076484f54d7c (patch)
tree8116615f60e1bac3bccd34a32b3c1c03ff37b237 /src/core/hle/service/nvnflinger
parentMerge pull request #12689 from liamwhite/remove-format (diff)
downloadyuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar.gz
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar.bz2
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar.lz
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar.xz
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.tar.zst
yuzu-ce895807499ef664f244eb9f435b076484f54d7c.zip
Diffstat (limited to 'src/core/hle/service/nvnflinger')
-rw-r--r--src/core/hle/service/nvnflinger/nvnflinger.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/hle/service/nvnflinger/nvnflinger.cpp b/src/core/hle/service/nvnflinger/nvnflinger.cpp
index 0469110e8..e05ff66ff 100644
--- a/src/core/hle/service/nvnflinger/nvnflinger.cpp
+++ b/src/core/hle/service/nvnflinger/nvnflinger.cpp
@@ -112,9 +112,7 @@ void Nvnflinger::ShutdownLayers() {
{
const auto lock_guard = Lock();
for (auto& display : displays) {
- for (size_t layer = 0; layer < display.GetNumLayers(); ++layer) {
- display.GetLayer(layer).GetConsumer().Abandon();
- }
+ display.Abandon();
}
is_abandoned = true;