diff options
| author | 2020-01-21 16:31:39 -0300 | |
|---|---|---|
| committer | 2020-01-29 17:53:11 -0300 | |
| commit | e651e54b85debf5a81c6d58dcc1e460fc398000c (patch) | |
| tree | aff1a5a766676b6bbb7324e17d96accad1055012 | |
| parent | shader/other: Fix skips for SYNC and BRK (diff) | |
| download | yuzu-e651e54b85debf5a81c6d58dcc1e460fc398000c.tar.gz yuzu-e651e54b85debf5a81c6d58dcc1e460fc398000c.tar.xz yuzu-e651e54b85debf5a81c6d58dcc1e460fc398000c.zip | |
core: Only wait for idle on gpu_core when it was initialized
This fixes crashes when a Vulkan device fails to initialize.
| -rw-r--r-- | src/core/core.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index d697b80ef..10ed5219b 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -259,7 +259,9 @@ struct System::Impl { | |||
| 259 | is_powered_on = false; | 259 | is_powered_on = false; |
| 260 | exit_lock = false; | 260 | exit_lock = false; |
| 261 | 261 | ||
| 262 | gpu_core->WaitIdle(); | 262 | if (gpu_core) { |
| 263 | gpu_core->WaitIdle(); | ||
| 264 | } | ||
| 263 | 265 | ||
| 264 | // Shutdown emulation session | 266 | // Shutdown emulation session |
| 265 | renderer.reset(); | 267 | renderer.reset(); |