[core] Make MapDebugOptions::StencilClip a no-op in Release mode

This commit is contained in:
Bruno de Oliveira Abinader
2016-07-18 15:02:35 +03:00
parent a709ea2656
commit 30f5aa72de
3 changed files with 7 additions and 0 deletions

View File

@@ -159,10 +159,12 @@ void Painter::render(const Style& style, const FrameData& frame_, SpriteAtlas& a
drawClippingMasks(parameters, generator.getStencils());
}
#if defined(DEBUG)
if (frame.debugOptions & MapDebugOptions::StencilClip) {
renderClipMasks();
return;
}
#endif
// Actually render the layers
if (debug::renderTree) { Log::Info(Event::Render, "{"); indent++; }