Quellcode durchsuchen

gpu: Add LogWarn to Vulkan OpenXR load failure, to match D3D12

Ethan Lee vor 2 Wochen
Ursprung
Commit
ad60fa07d7
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/gpu/vulkan/SDL_gpu_vulkan.c

+ 1 - 1
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;
         }