Fixed compiling Metal renderer on iOS

This commit is contained in:
Sam Lantinga
2017-12-07 17:12:03 -08:00
parent 1ae73a2be8
commit 6deb1e7595
4 changed files with 186 additions and 142 deletions

View File

@@ -154,8 +154,9 @@
#define SDL_VIDEO_RENDER_OGL_ES 1
#define SDL_VIDEO_RENDER_OGL_ES2 1
/* Enable Vulkan support on 64-bit devices when an iOS 8+ SDK is used. */
/* Enable Metal and Vulkan support on 64-bit devices when an iOS 8+ SDK is used. */
#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && defined(__IPHONE_8_0)
#define SDL_VIDEO_RENDER_METAL 1
#define SDL_VIDEO_VULKAN 1
#else
#define SDL_VIDEO_VULKAN 0