From fa4403f210ab06a2bba2c792f74fd25dd7f0c462 Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:53:57 -0400 Subject: [PATCH] gfx_api: Don't abort if Vulkan backend is unavailable - return false to allow proper fallback handling --- lib/ivis_opengl/gfx_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ivis_opengl/gfx_api.cpp b/lib/ivis_opengl/gfx_api.cpp index 1fa67a00b1e..22d52bec340 100644 --- a/lib/ivis_opengl/gfx_api.cpp +++ b/lib/ivis_opengl/gfx_api.cpp @@ -56,8 +56,8 @@ bool gfx_api::context::initialize(const gfx_api::backend_Impl_Factory& impl, int #if defined(WZ_VULKAN_ENABLED) current_backend_context = new VkRoot(uses_gfx_debug); #else - debug(LOG_FATAL, "Warzone was not compiled with the Vulkan backend enabled. Aborting."); - abort(); + debug(LOG_FATAL, "Warzone 2100 was not compiled with support for the Vulkan backend."); + return false; #endif break; }