summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvflinger
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-10-29 01:17:38 +0100
committerbunnei <bunneidev@gmail.com>2020-11-01 09:52:38 +0100
commit1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9 (patch)
treea4e9cebc24c2b7664f936e97d85317de14025ed2 /src/core/hle/service/nvflinger
parentvideo_core: gpu: Implement WaitFence and IncrementSyncPoint. (diff)
downloadyuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar.gz
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar.bz2
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar.lz
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar.xz
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.tar.zst
yuzu-1d4cbb92f2f2c1702fe5843c6ece471f53d2b2d9.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();