fixes #839: add isPackedDepthStencilSupported & isDepth24Supported for iOS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user