From 81a33985e120b1308a121249745ee444ff0a1756 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 8 Dec 2017 14:03:36 -0500 Subject: [PATCH] metal: Don't check if Metal is available if targeting modern macOS versions. --- src/render/metal/SDL_render_metal.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/metal/SDL_render_metal.m b/src/render/metal/SDL_render_metal.m index 2395342b0..9a0dfd478 100644 --- a/src/render/metal/SDL_render_metal.m +++ b/src/render/metal/SDL_render_metal.m @@ -119,7 +119,7 @@ IsMetalAvailable(const SDL_SysWMinfo *syswm) } // 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"); }