1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +01:00

[dxvk] Call SDL_Vulkan_LoadLibrary in getInstanceExtensions for SDL WSI

Closes: #3275
This commit is contained in:
Joshua Ashton 2023-03-03 00:13:55 +00:00
parent 1c6fc7b5b8
commit 1acf885109

View File

@ -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()));