[core] Use NDEBUG instead of DEBUG

CMake defines 'NDEBUG' by default for release build, so we can check if
that's not defined instead of using 'DEBUG' for debug build.
This commit is contained in:
Bruno de Oliveira Abinader
2016-07-21 12:45:47 +03:00
committed by Konstantin Käfer
parent 57bed88b03
commit 3ae506ee13
9 changed files with 13 additions and 21 deletions

View File

@@ -87,7 +87,7 @@ void Painter::renderDebugFrame(const mat4 &matrix) {
MBGL_CHECK_ERROR(glDrawArrays(GL_LINE_STRIP, 0, (GLsizei)tileBorderBuffer.index()));
}
#if defined(DEBUG)
#ifndef NDEBUG
void Painter::renderClipMasks() {
config.stencilTest = GL_FALSE;
config.depthTest = GL_FALSE;
@@ -123,6 +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)
#endif // NDEBUG
} // namespace mbgl