x11: Fix a bogus return in Vulkan_GetPresentationSupport

This commit is contained in:
Ethan Lee 2024-07-11 21:50:37 -04:00
parent 40f9fd854f
commit 180b4d7e74
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ SDL_bool X11_Vulkan_GetPresentationSupport(SDL_VideoDevice *_this,
VisualID visualid;
if (!_this->vulkan_config.loader_handle) {
return SDL_SetError("Vulkan is not loaded");
SDL_SetError("Vulkan is not loaded");
return SDL_FALSE;
}
vkGetInstanceProcAddr = (PFN_vkGetInstanceProcAddr)_this->vulkan_config.vkGetInstanceProcAddr;