[ios] Mute warnings about OpenGL deprecation. (#14019)

This commit is contained in:
Julian Rex
2019-03-05 08:52:14 -05:00
committed by GitHub
parent be2a4a0189
commit b29704cd1f

View File

@@ -27,11 +27,14 @@ MGL_EXPORT
@property (nonatomic, weak, readonly) MGLStyle *style;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#if TARGET_OS_IPHONE
@property (nonatomic, readonly) EAGLContext *context;
#else
@property (nonatomic, readonly) CGLContextObj context;
#endif
#pragma clang diagnostic pop
- (instancetype)initWithIdentifier:(NSString *)identifier;