fixes #839: add isPackedDepthStencilSupported & isDepth24Supported for iOS

This commit is contained in:
Justin R. Miller
2015-02-10 12:21:40 -08:00
parent 9201133251
commit c5f35d0d11

View File

@@ -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