VERY experimental Nintendo Switch 2 emulator
C++
service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed.
bunneid787a5bfde29
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cppindex c64673dba5..44aa2bdaea 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();