mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-04 17:06:25 +00:00
Worked around "Undefined symbol: ___isPlatformVersionAtLeast()" link error on Xcode 11 beta
This commit is contained in:
@@ -1733,11 +1733,12 @@ METAL_CreateRenderer(SDL_Window * window, Uint32 flags)
|
||||
#endif
|
||||
#else
|
||||
#ifdef __IPHONE_11_0
|
||||
if (@available(iOS 11.0, *)) {
|
||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
|
||||
maxtexsize = 16384;
|
||||
}
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunguarded-availability-new"
|
||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily4_v1]) {
|
||||
maxtexsize = 16384;
|
||||
} else
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
#ifdef __IPHONE_10_0
|
||||
if ([mtldevice supportsFeatureSet:MTLFeatureSet_iOS_GPUFamily3_v1]) {
|
||||
|
Reference in New Issue
Block a user