Browse Source

metal: Don't check if Metal is available if targeting modern macOS versions.

Ryan C. Gordon 7 years ago
parent
commit
81a33985e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/render/metal/SDL_render_metal.m

+ 1 - 1
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");
     }