summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorChloe <25727384+ogniK5377@users.noreply.github.com>2020-11-04 08:36:55 +0100
committerGitHub <noreply@github.com>2020-11-04 08:36:55 +0100
commit6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1 (patch)
treea97a13d00eaae7e81f028a57fef7dadf9d96a27c /src/core/hle/service/nvflinger
parentMerge pull request #4874 from lioncash/nodiscard2 (diff)
parentfixup! hle service: nvdrv: nvhost_gpu: Update to use SyncpointManager and other improvements. (diff)
downloadyuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar.gz
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar.bz2
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar.lz
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar.xz
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.tar.zst
yuzu-6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1.zip
Diffstat (limited to 'src/core/hle/service/nvflinger')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index c64673dba..44aa2bdae 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -242,6 +242,10 @@ void NVFlinger::Compose() {
const auto& igbp_buffer = buffer->get().igbp_buffer;
+ if (!system.IsPoweredOn()) {
+ return; // We are likely shutting down
+ }
+
auto& gpu = system.GPU();
const auto& multi_fence = buffer->get().multi_fence;
guard->unlock();