Skip to content

Commit

Permalink
vulkan: fix initialization when SDL3 is used
Browse files Browse the repository at this point in the history
  • Loading branch information
slime73 committed Oct 11, 2024
1 parent f20b413 commit 5383390
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ static void checkOptionalInstanceExtensions(OptionalInstanceExtensions& ext)
Graphics::Graphics()
: love::graphics::Graphics("love.graphics.vulkan")
{
#if SDL_VERSION_ATLEAST(3, 0, 0)
if (!SDL_Vulkan_LoadLibrary(nullptr))
#else
if (SDL_Vulkan_LoadLibrary(nullptr))
#endif
throw love::Exception("could not find vulkan");

volkInitializeCustom((PFN_vkGetInstanceProcAddr)SDL_Vulkan_GetVkGetInstanceProcAddr());
Expand Down

0 comments on commit 5383390

Please sign in to comment.