metal: Don't check if Metal is available if targeting modern macOS versions.
--HG-- extra : rebase_source : f007831a3ff9aebb17ec3529e6fee4c3ad63d0b1
This commit is contained in:
parent
f9a5278047
commit
122fb6329f
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue