diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-02-10 12:21:40 -0800 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-02-10 12:21:40 -0800 |
commit | c5f35d0d11f329a5da543715c3181578af2b2b13 (patch) | |
tree | 6beb2f8c4a833948d5c934ec92ec371748cb3f6f /platform | |
parent | 9201133251a7e4bcc61ffecd9f08ce2d81e349a9 (diff) | |
download | qtlocation-mapboxgl-c5f35d0d11f329a5da543715c3181578af2b2b13.tar.gz |
fixes #839: add isPackedDepthStencilSupported & isDepth24Supported for iOS
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLMapView.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index ecac9552c8..4328b46000 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -219,6 +219,14 @@ mbgl::DefaultFileSource *mbglFileSource = nullptr; gl::GenVertexArrays = glGenVertexArraysOES; gl::IsVertexArray = glIsVertexArrayOES; } + + if (extensions.find("GL_OES_packed_depth_stencil") != std::string::npos) { + gl::isPackedDepthStencilSupported = YES; + } + + if (extensions.find("GL_OES_depth24") != std::string::npos) { + gl::isDepth24Supported = YES; + } } // setup mbgl map |