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/state_tracker | |
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/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 2 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index f18c40dbe7b..15727fa9d80 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -188,7 +188,7 @@ st_update_framebuffer_state( struct st_context *st ) else framebuffer.zsbuf = NULL; -#ifdef DEBUG +#ifndef NDEBUG /* Make sure the resource binding flags were set properly */ for (i = 0; i < framebuffer.nr_cbufs; i++) { assert(!framebuffer.cbufs[i] || diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 18d03cc4ada..7f2f1984e65 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -2196,7 +2196,7 @@ st_choose_format(struct st_context *st, GLenum internalFormat, int j; enum pipe_format pf; -#ifdef DEBUG +#ifndef NDEBUG { static boolean firstCall = TRUE; if (firstCall) { |