[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

@@ -87,6 +87,7 @@ void Painter::renderDebugFrame(const mat4 &matrix) {
MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index()));
}
#if defined(DEBUG)
void Painter::renderClipMasks() {
config.stencilTest = GL_FALSE;
config.depthTest = GL_FALSE;
@@ -122,5 +123,6 @@ void Painter::renderClipMasks() {
MBGL_CHECK_ERROR(glDrawPixels(fbSize[0], fbSize[1], GL_LUMINANCE, GL_UNSIGNED_BYTE, pixels.get()));
#endif // GL_ES_VERSION_2_0
}
#endif // defined(DEBUG)
} // namespace mbgl