From 1acf88510928bec61e85d507791bc89ca67d734f Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Fri, 3 Mar 2023 00:13:55 +0000 Subject: [PATCH] [dxvk] Call SDL_Vulkan_LoadLibrary in getInstanceExtensions for SDL WSI Closes: #3275 --- src/dxvk/platform/dxvk_sdl2_exts.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dxvk/platform/dxvk_sdl2_exts.cpp b/src/dxvk/platform/dxvk_sdl2_exts.cpp index 701a3992..13583aa7 100644 --- a/src/dxvk/platform/dxvk_sdl2_exts.cpp +++ b/src/dxvk/platform/dxvk_sdl2_exts.cpp @@ -13,6 +13,8 @@ namespace dxvk { DxvkNameSet DxvkPlatformExts::getInstanceExtensions() { + SDL_Vulkan_LoadLibrary(nullptr); + uint32_t extensionCount = 0; if (!SDL_Vulkan_GetInstanceExtensions(nullptr, &extensionCount, nullptr)) throw DxvkError(str::format("SDL2 WSI: Failed to get instance extension count. ", SDL_GetError()));