mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
metal: Don't check if Metal is available if targeting modern macOS versions.
This commit is contained in:
parent
b733dcc208
commit
81a33985e1
@ -119,7 +119,7 @@ IsMetalAvailable(const SDL_SysWMinfo *syswm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// this checks a weak symbol.
|
// 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.
|
if (MTLCreateSystemDefaultDevice == NULL) { // probably on 10.10 or lower.
|
||||||
return SDL_SetError("Metal framework not available on this system");
|
return SDL_SetError("Metal framework not available on this system");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user