aboutsummaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-01-21 16:31:39 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-01-29 17:53:11 -0300
commite651e54b85debf5a81c6d58dcc1e460fc398000c (patch)
treeaff1a5a766676b6bbb7324e17d96accad1055012 /src/core/core.cpp
parent9f0162e4b5b657f3eaa8e04e7ee587a90e6d8f56 (diff)
core: Only wait for idle on gpu_core when it was initialized
This fixes crashes when a Vulkan device fails to initialize.
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index d697b80eff..10ed5219ba 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -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();