[core] do not call glStencilFunc when we're not clipping

This commit is contained in:
Konstantin Käfer
2016-03-15 17:43:13 +01:00
parent 3a36079ccc
commit e7ac0f6d4c
14 changed files with 35 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ void Painter::renderTileDebug(const Tile& tile) {
MBGL_DEBUG_GROUP(std::string { "debug " } + std::string(tile.id));
assert(tile.data);
if (data.getDebug() != MapDebugOptions::NoDebug) {
prepareTile(tile);
setClipping(tile.clip);
if (data.getDebug() & (MapDebugOptions::Timestamps | MapDebugOptions::ParseStatus)) {
renderDebugText(*tile.data, tile.matrix);
}