diff options
Diffstat (limited to 'src/mbgl/gl/debugging.cpp')
-rw-r--r-- | src/mbgl/gl/debugging.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/mbgl/gl/debugging.cpp b/src/mbgl/gl/debugging.cpp deleted file mode 100644 index 54cee5fc09..0000000000 --- a/src/mbgl/gl/debugging.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include <mbgl/gl/debugging.hpp> -#include <mbgl/gl/context.hpp> -#include <mbgl/gl/debugging_extension.hpp> - -namespace mbgl { -namespace gl { - -using namespace platform; - -#ifndef NDEBUG - -DebugGroup::DebugGroup(const gfx::Context& context_, const std::string& name) : context(context_) { - if (auto debugging = reinterpret_cast<const gl::Context&>(context).getDebuggingExtension()) { - if (debugging->pushDebugGroup) { - MBGL_CHECK_ERROR(debugging->pushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, GLsizei(name.size()), name.c_str())); - } else if (debugging->pushGroupMarkerEXT) { - MBGL_CHECK_ERROR(debugging->pushGroupMarkerEXT(GLsizei(name.size() + 1), name.c_str())); - } - } -} - -DebugGroup::~DebugGroup() { - if (auto debugging = reinterpret_cast<const gl::Context&>(context).getDebuggingExtension()) { - if (debugging->popDebugGroup) { - MBGL_CHECK_ERROR(debugging->popDebugGroup()); - } else if (debugging->popGroupMarkerEXT) { - MBGL_CHECK_ERROR(debugging->popGroupMarkerEXT()); - } - } -} - -#endif - -} // namespace gl -} // namespace mbgl |