Skip to content
Permalink
Browse files

Added availability check to fix compiler warning for symbol only avai…

…lable on tvOS 11.0 and newer
  • Loading branch information
slouken committed Jan 10, 2018
1 parent 7d5437b commit 72d45079182c47f1c029494acb2e2c3f61cbdea8
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/render/metal/SDL_render_metal.m
@@ -653,14 +653,14 @@ - (void)dealloc
#if defined(__MACOSX__)
maxtexsize = 16384;
#elif defined(__TVOS__)
maxtexsize = 8192;
#ifdef __TVOS_11_0
if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) {
maxtexsize = 16384;
} else
#endif
{
maxtexsize = 8192;
if (@available(tvOS 11.0, *)) {
if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) {
maxtexsize = 16384;
}
}
#endif
#else
#ifdef __IPHONE_11_0
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {

0 comments on commit 72d4507

Please sign in to comment.