From ad60fa07d7164005787c58bb7526fe511df94d17 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Mon, 16 Feb 2026 11:46:20 -0500 Subject: [PATCH] gpu: Add LogWarn to Vulkan OpenXR load failure, to match D3D12 --- src/gpu/vulkan/SDL_gpu_vulkan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c index dee46c3a4b..5cb0dbdc2f 100644 --- a/src/gpu/vulkan/SDL_gpu_vulkan.c +++ b/src/gpu/vulkan/SDL_gpu_vulkan.c @@ -12744,7 +12744,7 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props) if (xr) { if (!SDL_OpenXR_LoadLibrary()) { - /* SDL_GetError() already has the detailed message from SDL_OpenXR_LoadLibrary() */ + SDL_LogWarn(SDL_LOG_CATEGORY_GPU, "Vulkan: Failed to load OpenXR: %s", SDL_GetError()); SDL_Vulkan_UnloadLibrary(); return false; }