Remove unused GL feature flags

These were used only for prerendered textures, which were removed.
This commit is contained in:
John Firebaugh
2015-05-12 15:08:12 -07:00
parent 9cd749b55a
commit 0f7c6b0b52
6 changed files with 0 additions and 37 deletions

View File

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

View File

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

View File

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

View File

@@ -95,10 +95,6 @@ void HeadlessView::loadExtensions() {
#endif
});
// HeadlessView requires packed depth stencil
gl::isPackedDepthStencilSupported = true;
gl::isDepth24Supported = true;
extensionsLoaded = true;
}

View File

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

View File

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