Vulkan support on Mac OS X introduces a link time dependency (CAMetalLayer) on 10.11 and newer
authorSam Lantinga <slouken@libsdl.org>
Mon, 28 Aug 2017 19:32:08 -0700
changeset 114017d6f83ec35c1
parent 11400 9eefdf672499
child 11402 d459d8934897
Vulkan support on Mac OS X introduces a link time dependency (CAMetalLayer) on 10.11 and newer
include/SDL_config_macosx.h
     1.1 --- a/include/SDL_config_macosx.h	Mon Aug 28 19:30:59 2017 -0700
     1.2 +++ b/include/SDL_config_macosx.h	Mon Aug 28 19:32:08 2017 -0700
     1.3 @@ -175,8 +175,8 @@
     1.4  #endif
     1.5  
     1.6  /* Enable Vulkan support */
     1.7 -/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures */
     1.8 -#if TARGET_CPU_X86_64
     1.9 +/* Metal/MoltenVK/Vulkan only supported on 64-bit architectures with 10.11+ */
    1.10 +#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 101100)
    1.11  #define SDL_VIDEO_VULKAN 1
    1.12  #else
    1.13  #define  SDL_VIDEO_VULKAN 0