Remove unused GL feature flags
These were used only for prerendered textures, which were removed.
This commit is contained in:
@@ -610,15 +610,6 @@ void loadExtensions() {
|
||||
assert(gl::IsVertexArray != nullptr);
|
||||
}
|
||||
|
||||
if (extensions.find("GL_OES_packed_depth_stencil") != std::string::npos) {
|
||||
mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_OES_packed_depth_stencil.");
|
||||
gl::isPackedDepthStencilSupported = true;
|
||||
}
|
||||
|
||||
if (extensions.find("GL_OES_depth24") != std::string::npos) {
|
||||
gl::isDepth24Supported = true;
|
||||
}
|
||||
|
||||
if (extensions.find("GL_KHR_debug") != std::string::npos) {
|
||||
mbgl::Log::Info(mbgl::Event::OpenGL, "Using GL_KHR_debug.");
|
||||
gl::DebugMessageControl = reinterpret_cast<gl::PFNGLDEBUGMESSAGECONTROLPROC>(
|
||||
|
||||
@@ -144,14 +144,6 @@ extern PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays;
|
||||
extern PFNGLGENVERTEXARRAYSPROC GenVertexArrays;
|
||||
extern PFNGLISVERTEXARRAYPROC IsVertexArray;
|
||||
|
||||
// GL_EXT_packed_depth_stencil / GL_OES_packed_depth_stencil
|
||||
extern bool isPackedDepthStencilSupported;
|
||||
#define GL_DEPTH24_STENCIL8 0x88F0
|
||||
|
||||
// GL_OES_depth24
|
||||
extern bool isDepth24Supported;
|
||||
#define GL_DEPTH_COMPONENT24 0x81A6
|
||||
|
||||
// Debug group markers, useful for debugging on iOS
|
||||
#if defined(DEBUG)
|
||||
// static int indent = 0;
|
||||
|
||||
@@ -142,10 +142,6 @@ GLFWView::GLFWView(bool fullscreen_) : fullscreen(fullscreen_) {
|
||||
assert(gl::GenVertexArrays != nullptr);
|
||||
assert(gl::IsVertexArray != nullptr);
|
||||
}
|
||||
|
||||
// Require packed depth stencil
|
||||
gl::isPackedDepthStencilSupported = true;
|
||||
gl::isDepth24Supported = true;
|
||||
});
|
||||
|
||||
glfwMakeContextCurrent(nullptr);
|
||||
|
||||
@@ -95,10 +95,6 @@ void HeadlessView::loadExtensions() {
|
||||
#endif
|
||||
});
|
||||
|
||||
// HeadlessView requires packed depth stencil
|
||||
gl::isPackedDepthStencilSupported = true;
|
||||
gl::isDepth24Supported = true;
|
||||
|
||||
extensionsLoaded = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -251,14 +251,6 @@ std::chrono::steady_clock::duration secondsAsDuration(float duration)
|
||||
gl::PushGroupMarkerEXT = glPushGroupMarkerEXT;
|
||||
gl::PopGroupMarkerEXT = glPopGroupMarkerEXT;
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
@@ -70,10 +70,6 @@ PFNGLDELETEVERTEXARRAYSPROC DeleteVertexArrays = nullptr;
|
||||
PFNGLGENVERTEXARRAYSPROC GenVertexArrays = nullptr;
|
||||
PFNGLISVERTEXARRAYPROC IsVertexArray = nullptr;
|
||||
|
||||
bool isPackedDepthStencilSupported = false;
|
||||
|
||||
bool isDepth24Supported = false;
|
||||
|
||||
void checkError(const char *cmd, const char *file, int line) {
|
||||
const GLenum err = glGetError();
|
||||
if (err != GL_NO_ERROR) {
|
||||
|
||||
Reference in New Issue
Block a user