From a054bd7a9dddc59a79406d0a844523ec5024a4bc Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Sat, 21 Jan 2023 23:14:29 +0000 Subject: [PATCH] Adds a warning in case of Vulkan window creation failure. This was SVN commit r27478. --- source/ps/VideoMode.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/ps/VideoMode.cpp b/source/ps/VideoMode.cpp index f63fea1acc..7ef4e9d7f7 100644 --- a/source/ps/VideoMode.cpp +++ b/source/ps/VideoMode.cpp @@ -397,6 +397,7 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen) // SDL might fail to create a window in case of missing a Vulkan driver. if (m_Backend == Renderer::Backend::Backend::VULKAN) { + LOGWARNING("Failed to create a Vulkan window: %s", SDL_GetError()); DowngradeBackendSettingAfterCreationFailure(); return SetVideoMode(w, h, bpp, fullscreen); }