diff options
author | Marek Olšák <[email protected]> | 2019-05-09 21:04:23 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-05-29 21:13:35 -0400 |
commit | b5697c311b6f29dee40b96c48bad3279e3667c1e (patch) | |
tree | d0708cd5249ec8d3535bda8134f91ea79af2ffde /src/mesa/main/feedback.c | |
parent | 0f1b68ebeeee196ced42d8ac66d231338b507bad (diff) |
Change a few frequented uses of DEBUG to !NDEBUG
debugoptimized builds don't define NDEBUG, but they also don't define
DEBUG. We want to enable cheap debug code for these builds.
I only chose those occurences that I care about.
Reviewed-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/main/feedback.c')
-rw-r--r-- | src/mesa/main/feedback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/feedback.c b/src/mesa/main/feedback.c index 65f4c35d94e..8b3410f39c5 100644 --- a/src/mesa/main/feedback.c +++ b/src/mesa/main/feedback.c @@ -428,7 +428,7 @@ _mesa_RenderMode( GLenum mode ) } if (ctx->Select.BufferCount > ctx->Select.BufferSize) { /* overflow */ -#ifdef DEBUG +#ifndef NDEBUG _mesa_warning(ctx, "Feedback buffer overflow"); #endif result = -1; |