summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/painter.hpp
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-07-21 12:45:47 +0300
committerKonstantin Käfer <mail@kkaefer.com>2016-08-05 11:42:22 +0200
commit3ae506ee1301bcc3f9961a9282f710b8b7fa8039 (patch)
tree225b86322734f372a8d24c1c24ffa187aff4febd /src/mbgl/renderer/painter.hpp
parent57bed88b03e87344712800f8fbe796f81a00fc16 (diff)
downloadqtlocation-mapboxgl-3ae506ee1301bcc3f9961a9282f710b8b7fa8039.tar.gz
[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.
Diffstat (limited to 'src/mbgl/renderer/painter.hpp')
-rw-r--r--src/mbgl/renderer/painter.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/renderer/painter.hpp b/src/mbgl/renderer/painter.hpp
index b291c14b14..2b6c1efdea 100644
--- a/src/mbgl/renderer/painter.hpp
+++ b/src/mbgl/renderer/painter.hpp
@@ -86,7 +86,7 @@ public:
// Renders the red debug frame around a tile, visualizing its perimeter.
void renderDebugFrame(const mat4 &matrix);
-#if defined(DEBUG)
+#ifndef NDEBUG
// Renders tile clip boundaries, using stencil buffer to calculate fill color.
void renderClipMasks();
#endif
@@ -142,7 +142,7 @@ private:
void setDepthSublayer(int n);
-#if defined(DEBUG)
+#ifndef NDEBUG
bool isOverdraw() const { return frame.debugOptions & MapDebugOptions::Overdraw; }
#else
bool isOverdraw() const { return false; }
@@ -181,7 +181,7 @@ private:
FrameHistory frameHistory;
std::unique_ptr<Shaders> shaders;
-#if defined(DEBUG)
+#ifndef NDEBUG
std::unique_ptr<Shaders> overdrawShaders;
#endif