diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-15 13:54:42 +0100 |
---|---|---|
committer | Alf Watt <alf.watt@mapbox.com> | 2019-03-21 12:25:10 -0700 |
commit | 33604475e67243a6825dd73b089b40fdfa002276 (patch) | |
tree | 7a14119be394f807d079002b116fc2f104684485 /src/mbgl/gl/debugging.cpp | |
parent | 89c825e953111f2c21699f64e27f3aa322950fb9 (diff) | |
download | qtlocation-mapboxgl-33604475e67243a6825dd73b089b40fdfa002276.tar.gz |
[core] remove gl/context.hpp from more files, cast where necessary
Diffstat (limited to 'src/mbgl/gl/debugging.cpp')
-rw-r--r-- | src/mbgl/gl/debugging.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/gl/debugging.cpp b/src/mbgl/gl/debugging.cpp index 7b8121f003..54cee5fc09 100644 --- a/src/mbgl/gl/debugging.cpp +++ b/src/mbgl/gl/debugging.cpp @@ -9,8 +9,8 @@ using namespace platform; #ifndef NDEBUG -DebugGroup::DebugGroup(const Context& context_, const std::string& name) : context(context_) { - if (auto debugging = context.getDebuggingExtension()) { +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) { @@ -20,7 +20,7 @@ DebugGroup::DebugGroup(const Context& context_, const std::string& name) : conte } DebugGroup::~DebugGroup() { - if (auto debugging = context.getDebuggingExtension()) { + if (auto debugging = reinterpret_cast<const gl::Context&>(context).getDebuggingExtension()) { if (debugging->popDebugGroup) { MBGL_CHECK_ERROR(debugging->popDebugGroup()); } else if (debugging->popGroupMarkerEXT) { |