Permalink
Browse files

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 <airlied@redhat.com>
  • Loading branch information...
1 parent 50683d2 commit 86163b81a49deb1df84d25a06333649949007c5a Dave Airlie committed Feb 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 86163b8

Please sign in to comment.