From c1c4066c76af768f5af4e2b5b21095d882f51810 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 10 May 2021 00:29:58 +0600 Subject: [PATCH] SDL: Report Vulkan initialization errors --- src/common/platform/posix/sdl/sdlglvideo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/platform/posix/sdl/sdlglvideo.cpp b/src/common/platform/posix/sdl/sdlglvideo.cpp index 9487854f9..43bd99a64 100644 --- a/src/common/platform/posix/sdl/sdlglvideo.cpp +++ b/src/common/platform/posix/sdl/sdlglvideo.cpp @@ -449,13 +449,14 @@ DFrameBuffer *SDLVideo::CreateFrameBuffer () device = new VulkanDevice(); fb = new VulkanFrameBuffer(nullptr, vid_fullscreen, device); } - catch (CVulkanError const&) + catch (CVulkanError const &error) { if (Priv::window != nullptr) { Priv::DestroyWindow(); } + Printf(TEXTCOLOR_RED "Initialization of Vulkan failed: %s\n", error.what()); Priv::vulkanEnabled = false; } }