diff options
| author | Chloe <25727384+ogniK5377@users.noreply.github.com> | 2020-11-04 18:36:55 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-04 18:36:55 +1100 |
| commit | 6bbbbe8f85369dfc7a67441e5f7f6ab7a6484ae1 (patch) | |
| tree | a97a13d00eaae7e81f028a57fef7dadf9d96a27c /src/core/hle/service/nvflinger/nvflinger.cpp | |
| parent | 4bfa411ddcf3b5454c85ada70f28438feaaae93e (diff) | |
| parent | 848bdf8a40aa31f1525e7326225f0f9fc3126d4d (diff) | |
Merge pull request #4869 from bunnei/improve-gpu-sync
Improvements to GPU synchronization & various refactoring
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
| -rw-r--r-- | src/core/hle/service/nvflinger/nvflinger.cpp | 4 |
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(); |
