mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 17:14:18 +01:00
service: hle: nvflinger: Fix potential shutdown crash when GPU is destroyed.
This commit is contained in:
parent
6053b95552
commit
1d4cbb92f2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user