disable debugging groups in non-debug builds

Use a macro to completely remove all instantiations of mbgl::gl::debugging::group so that we aren't executing the code to generate the arguments to the object instantiation
This commit is contained in:
Konstantin Käfer
2015-08-14 17:15:34 +03:00
parent 85908c3381
commit bb0ae37c25
6 changed files with 23 additions and 20 deletions

View File

@@ -186,7 +186,7 @@ void Source::updateMatrices(const mat4 &projMatrix, const TransformState &transf
void Source::drawClippingMasks(Painter &painter) {
for (const auto& pair : tiles) {
Tile &tile = *pair.second;
gl::debugging::group group(std::string { "mask: " } + std::string(tile.id));
MBGL_DEBUG_GROUP(std::string { "mask: " } + std::string(tile.id));
painter.drawClippingMask(tile.matrix, tile.clip);
}
}