cmake: Don't support Vulkan if LOADSO is disabled.

Fixes #4373.
This commit is contained in:
Ryan C. Gordon 2021-08-23 23:58:54 -04:00
parent fff421f4b8
commit 374b0b9aaf
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

@ -2249,6 +2249,11 @@ elseif(VITA)
endif()
if(VIDEO_VULKAN AND NOT SDL_LOADSO)
message(STATUS "Vulkan support is available, but disabled because there's no loadso.")
set(VIDEO_VULKAN OFF)
endif()
if(VIDEO_VULKAN)
set(SDL_VIDEO_VULKAN 1)
set(HAVE_VIDEO_VULKAN TRUE)