From e8b114ecfce2c2925c028df97f7e5407f20745cf Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 28 Aug 2017 19:32:08 -0700 Subject: [PATCH] Vulkan support on Mac OS X introduces a link time dependency (CAMetalLayer) on 10.11 and newer --- include/SDL_config_macosx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_config_macosx.h b/include/SDL_config_macosx.h index eb6bbd9b14c88..610a8eba94b62 100644 --- a/include/SDL_config_macosx.h +++ b/include/SDL_config_macosx.h @@ -175,8 +175,8 @@ #endif /* Enable Vulkan support */ -/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures */ -#if TARGET_CPU_X86_64 +/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */ +#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) #define SDL_VIDEO_VULKAN 1 #else #define SDL_VIDEO_VULKAN 0