Add error messages if Vulkan init failed, prevent Vulkan context freeing uninitialized device and instance.
This commit is contained in:
parent
db1eb909fe
commit
996910b627
7 changed files with 46 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue