diff options
author | Dave Airlie <[email protected]> | 2012-02-08 12:47:05 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-02-09 19:39:30 +0000 |
commit | 86163b81a49deb1df84d25a06333649949007c5a (patch) | |
tree | 87e1b0dbd0cf2889ab93ee22ed528792fb438ea1 /src/mesa | |
parent | 50683d2aa6456f3abec8387b0b02f67ab2cab3e5 (diff) |
st/mesa: fixup NDEBUG vs DEBUG causing debug path to get taken.
From what I can see we were taking the debug path all the time,
when we probably only want it for enable debug path.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_atom.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c index e1eac818e11..d9cd4aab49b 100644 --- a/src/mesa/state_tracker/st_atom.c +++ b/src/mesa/state_tracker/st_atom.c @@ -148,10 +148,10 @@ void st_validate_state( struct st_context *st ) /*printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/ -#ifdef NDEBUG - if (0) { -#else +#ifdef DEBUG if (1) { +#else + if (0) { #endif /* Debug version which enforces various sanity checks on the * state flags which are generated and checked to help ensure |