瀏覽代碼

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

Ethan Lee 2 月之前
父節點
當前提交
ad60fa07d7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
         }