macOS: Fix MoltenVK Metal view resizing, and allow the metal view to be used without vulkan.

This commit is contained in:
Alex Szpakowski 2017-12-31 15:21:25 -04:00
parent 6d32ebdbc9
commit 48fea0cee4
3 changed files with 18 additions and 12 deletions

View file

@ -184,7 +184,12 @@
#endif
#ifndef SDL_VIDEO_RENDER_METAL
/* Metal only supported on 64-bit architectures with 10.11+ */
#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
#define SDL_VIDEO_RENDER_METAL 1
#else
#define SDL_VIDEO_RENDER_METAL 0
#endif
#endif
/* Enable OpenGL support */
@ -209,7 +214,7 @@
#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
#define SDL_VIDEO_VULKAN 1
#else
#define SDL_VIDEO_VULKAN 0
#define SDL_VIDEO_VULKAN 0
#endif
/* Enable system power support */