mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-17 14:47:19 +01:00
Added availability check to fix compiler warning for symbol only available on tvOS 11.0 and newer
This commit is contained in:
parent
7d5437bb31
commit
72d4507918
@ -653,14 +653,14 @@ METAL_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||
#if defined(__MACOSX__)
|
||||
maxtexsize = 16384;
|
||||
#elif defined(__TVOS__)
|
||||
maxtexsize = 8192;
|
||||
#ifdef __TVOS_11_0
|
||||
if (@available(tvOS 11.0, *)) {
|
||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) {
|
||||
maxtexsize = 16384;
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
maxtexsize = 8192;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
#ifdef __IPHONE_11_0
|
||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
|
||||
|
Loading…
Reference in New Issue
Block a user