Explorar o código

Fixed bug 5362 - Mac OS ARM doesn't build Metal/Vulkan back-end/renderers

C.W. Betts

As it is, SDL2's built-in config on macOS for Metal excludes Apple Silicon. This is due to thinking that the 64-bit Mac platform would always be x86_64. My patch fixes this by using the catch-all of 64-bit platforms.
Sam Lantinga %!s(int64=4) %!d(string=hai) anos
pai
achega
38ab8bf74b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/SDL_config_macosx.h

+ 1 - 1
include/SDL_config_macosx.h

@@ -208,7 +208,7 @@
 #endif
 
 /* Metal only supported on 64-bit architectures with 10.11+ */
-#if TARGET_CPU_X86_64 && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
+#if TARGET_RT_64_BIT && (MAC_OS_X_VERSION_MAX_ALLOWED >= 101100)
 #define SDL_PLATFORM_SUPPORTS_METAL    1
 #else
 #define SDL_PLATFORM_SUPPORTS_METAL    0