summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-02-10 14:15:49 -0800
committerJustin R. Miller <incanus@codesorcery.net>2015-02-10 14:15:49 -0800
commit49e76dba951aa232e24b988981e7bd8532b254c5 (patch)
tree3f19a6487806c567392e937efecad17491bb1806 /platform
parentc5f35d0d11f329a5da543715c3181578af2b2b13 (diff)
downloadqtlocation-mapboxgl-49e76dba951aa232e24b988981e7bd8532b254c5.tar.gz
fixes #621: better performance for iPhone 6 Plus through smaller renderbuffer
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm3
1 files changed, 3 insertions, 0 deletions
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];