src/render/metal/SDL_render_metal.m
changeset 11742 971cd689bd96
parent 11741 e7d5d4ae2e73
child 11743 3af68ade4d30
equal deleted inserted replaced
11741:e7d5d4ae2e73 11742:971cd689bd96
   117     if (syswm->subsystem != SDL_SYSWM_COCOA && syswm->subsystem != SDL_SYSWM_UIKIT) {
   117     if (syswm->subsystem != SDL_SYSWM_COCOA && syswm->subsystem != SDL_SYSWM_UIKIT) {
   118         return SDL_SetError("Metal render target only supports Cocoa and UIKit video targets at the moment.");
   118         return SDL_SetError("Metal render target only supports Cocoa and UIKit video targets at the moment.");
   119     }
   119     }
   120 
   120 
   121     // this checks a weak symbol.
   121     // this checks a weak symbol.
   122 #if defined(__MACOSX__)
   122 #if (defined(__MACOSX__) && (MAC_OS_X_VERSION_MIN_REQUIRED < 101100))
   123     if (MTLCreateSystemDefaultDevice == NULL) {  // probably on 10.10 or lower.
   123     if (MTLCreateSystemDefaultDevice == NULL) {  // probably on 10.10 or lower.
   124         return SDL_SetError("Metal framework not available on this system");
   124         return SDL_SetError("Metal framework not available on this system");
   125     }
   125     }
   126 #endif
   126 #endif
   127 
   127