Vulkan support on Mac OS X introduces a link time dependency (CAMetalLayer) on 10.11 and newer

This commit is contained in:
Sam Lantinga 2017-08-28 19:32:08 -07:00
parent 309474765b
commit e8b114ecfc

View File

@ -175,8 +175,8 @@
#endif #endif
/* Enable Vulkan support */ /* Enable Vulkan support */
/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures */ /* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
#if TARGET_CPU_X86_64 #if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
#define SDL_VIDEO_VULKAN 1 #define SDL_VIDEO_VULKAN 1
#else #else
#define SDL_VIDEO_VULKAN 0 #define SDL_VIDEO_VULKAN 0