Browse Source

service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed.

nce_cpp
bunnei 5 years ago
parent
commit
d787a5bfde
  1. 4
      src/core/hle/service/nvflinger/nvflinger.cpp

4
src/core/hle/service/nvflinger/nvflinger.cpp

@ -242,6 +242,10 @@ void NVFlinger::Compose() {
const auto& igbp_buffer = buffer->get().igbp_buffer; const auto& igbp_buffer = buffer->get().igbp_buffer;
if (!system.IsPoweredOn()) {
return; // We are likely shutting down
}
auto& gpu = system.GPU(); auto& gpu = system.GPU();
const auto& multi_fence = buffer->get().multi_fence; const auto& multi_fence = buffer->get().multi_fence;
guard->unlock(); guard->unlock();

Loading…
Cancel
Save