From 996910b62706774792bde4934e23ef5bde37fc32 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 13 Jul 2020 19:24:04 +0300 Subject: Add error messages if Vulkan init failed, prevent Vulkan context freeing uninitialized device and instance. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') 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; } -- cgit v1.2.3