[Commits] SDL: metal: Don't check if Metal is available if targeting moder...

libsdl.org revision control commits-owner at libsdl.org
Fri Dec 8 12:14:12 PST 2017


details:   https://hg.libsdl.org/SDL/rev/971cd689bd96
changeset: 11742:971cd689bd96
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Fri Dec 08 14:03:36 2017 -0500
description:
metal: Don't check if Metal is available if targeting modern macOS versions.

diffstat:

 src/render/metal/SDL_render_metal.m |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e7d5d4ae2e73 -r 971cd689bd96 src/render/metal/SDL_render_metal.m
--- a/src/render/metal/SDL_render_metal.m	Fri Dec 08 12:02:23 2017 -0800
+++ b/src/render/metal/SDL_render_metal.m	Fri Dec 08 14:03:36 2017 -0500
@@ -119,7 +119,7 @@
     }
 
     // this checks a weak symbol.
-#if defined(__MACOSX__)
+#if (defined(__MACOSX__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101100))
     if (MTLCreateSystemDefaultDevice == NULL) {  // probably on 10.10 or lower.
         return SDL_SetError("Metal framework not available on this system");
     }


More information about the commits mailing list