From 49e76dba951aa232e24b988981e7bd8532b254c5 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Tue, 10 Feb 2015 14:15:49 -0800 Subject: fixes #621: better performance for iPhone 6 Plus through smaller renderbuffer --- platform/ios/MGLMapView.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform') diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 4328b46000..7c1f9eb657 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -202,6 +202,9 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr; _glView.enableSetNeedsDisplay = NO; _glView.drawableStencilFormat = GLKViewDrawableStencilFormat8; _glView.drawableDepthFormat = GLKViewDrawableDepthFormat16; + if ([UIScreen instancesRespondToSelector:@selector(nativeScale)]) { + _glView.contentScaleFactor = [[UIScreen mainScreen] nativeScale]; + } _glView.delegate = self; [_glView bindDrawable]; [self addSubview:_glView]; -- cgit v1.2.1