diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-07-13 19:24:04 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2020-07-13 19:24:21 +0300 |
commit | 996910b62706774792bde4934e23ef5bde37fc32 (patch) | |
tree | 063f672dd0edb794b52ec6d9decd830c42eb70c3 /main | |
parent | db1eb909fe1e6067743892d7544160a1a40b9e43 (diff) |
Add error messages if Vulkan init failed, prevent Vulkan context freeing uninitialized device and instance.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index 4fbbc21f41..bb4751c61d 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1298,7 +1298,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) { } } - if (!display_server) { + if (!display_server || err != OK) { ERR_PRINT("Unable to create DisplayServer, all display drivers failed."); return err; } |