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

master
bunnei 2020-10-28 17:17:38 +07:00
parent 6053b95552
commit 1d4cbb92f2
1 changed files with 4 additions and 0 deletions

@ -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();