Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
disable metal backend for now
Browse files Browse the repository at this point in the history
Metal backend seems to be unimplemented in upstream cmake. I presume it
works if you use their xcode project instead.
  • Loading branch information
wheybags committed Jul 22, 2019
1 parent 3041d15 commit 0f233dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions include/SDL_config_iphoneos.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@
#define SDL_VIDEO_RENDER_OGL_ES2 1

/* Metal supported on 64-bit devices running iOS 8.0 and tvOS 9.0 and newer */
#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 90000))
#define SDL_PLATFORM_SUPPORTS_METAL 1
#else
//#if !TARGET_OS_SIMULATOR && !TARGET_CPU_ARM && ((__IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (__TV_OS_VERSION_MIN_REQUIRED >= 90000))
//#define SDL_PLATFORM_SUPPORTS_METAL 1
//#else
#define SDL_PLATFORM_SUPPORTS_METAL 0
#endif
//#endif

#if SDL_PLATFORM_SUPPORTS_METAL
#define SDL_VIDEO_RENDER_METAL 1
Expand Down
8 changes: 4 additions & 4 deletions include/SDL_config_macosx.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@

#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
//#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
#endif

/* Enable OpenGL support */
Expand Down

0 comments on commit 0f233dc

Please sign in to comment.