Skip to content

Commit

Permalink
Added availability check to fix compiler warning for symbol only avai…
Browse files Browse the repository at this point in the history
…lable on tvOS 11.0 and newer
  • Loading branch information
slouken committed Jan 10, 2018
1 parent 7d5437b commit 72d4507
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/render/metal/SDL_render_metal.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -653,14 +653,14 @@ - (void)dealloc
#if defined(__MACOSX__) #if defined(__MACOSX__)
maxtexsize = 16384; maxtexsize = 16384;
#elif defined(__TVOS__) #elif defined(__TVOS__)
maxtexsize = 8192;
#ifdef __TVOS_11_0 #ifdef __TVOS_11_0
if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) { if (@available(tvOS 11.0, *)) {
maxtexsize = 16384; if ([mtldevice supportsFeatureSet:MTLFeatureSet_tvOS_GPUFamily2_v1]) {
} else maxtexsize = 16384;
#endif }
{
maxtexsize = 8192;
} }
#endif
#else #else
#ifdef __IPHONE_11_0 #ifdef __IPHONE_11_0
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) { if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
Expand Down

0 comments on commit 72d4507

Please sign in to comment.