[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:
committed by
Konstantin Käfer
parent
57bed88b03
commit
3ae506ee13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user