[core] Move GLFW stencil clip debug to core

This makes the stencil clip debug available to all platforms.

Fixes #4669.
This commit is contained in:
Bruno de Oliveira Abinader
2016-05-23 19:15:10 +03:00
parent 876bf0687a
commit 1769e6fcb4
7 changed files with 57 additions and 56 deletions

View File

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