1
0
Fork 0
forked from suyu/suyu

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:
ReinUsesLisp 2020-01-21 16:31:39 -03:00
parent 9f0162e4b5
commit e651e54b85

View file

@ -259,7 +259,9 @@ struct System::Impl {
is_powered_on = false;
exit_lock = false;
gpu_core->WaitIdle();
if (gpu_core) {
gpu_core->WaitIdle();
}
// Shutdown emulation session
renderer.reset();