Skip to content
Snippets Groups Projects
Commit 1d4cbb92 authored by bunnei's avatar bunnei
Browse files

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

parent 6053b955
No related branches found
No related tags found
No related merge requests found
...@@ -242,6 +242,10 @@ void NVFlinger::Compose() { ...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment