summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/ios/MGLMapView.mm8
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