From c5f35d0d11f329a5da543715c3181578af2b2b13 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Tue, 10 Feb 2015 12:21:40 -0800 Subject: [PATCH] fixes #839: add isPackedDepthStencilSupported & isDepth24Supported for iOS --- platform/ios/MGLMapView.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index ecac9552c..4328b4600 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