mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-26 13:26:30 -05:00
core: Only wait for idle on gpu_core when it was initialized
This fixes crashes when a Vulkan device fails to initialize.
This commit is contained in:
parent
9f0162e4b5
commit
e651e54b85
1 changed files with 3 additions and 1 deletions
|
@ -259,7 +259,9 @@ struct System::Impl {
|
||||||
is_powered_on = false;
|
is_powered_on = false;
|
||||||
exit_lock = false;
|
exit_lock = false;
|
||||||
|
|
||||||
gpu_core->WaitIdle();
|
if (gpu_core) {
|
||||||
|
gpu_core->WaitIdle();
|
||||||
|
}
|
||||||
|
|
||||||
// Shutdown emulation session
|
// Shutdown emulation session
|
||||||
renderer.reset();
|
renderer.reset();
|
||||||
|
|
Loading…
Reference in a new issue