Compilation without vulkan: SDL_GPU_VULKAN is always defined for some plateform (at android, macos), test against 0 or 1

This commit is contained in:
Sylvain 2024-09-05 10:56:16 +02:00 committed by Sam Lantinga
parent defbf67306
commit 41810c823d
2 changed files with 2 additions and 2 deletions

View file

@ -127,7 +127,7 @@ static const SDL_GPUBootstrap *backends[] = {
#ifdef SDL_GPU_D3D12
&D3D12Driver,
#endif
#ifdef SDL_GPU_VULKAN
#if defined(SDL_GPU_VULKAN) && SDL_GPU_VULKAN
&VulkanDriver,
#endif
#ifdef SDL_GPU_D3D11