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