From: Marek Olšák Date: Mon, 27 Dec 2010 17:22:05 +0000 (+0100) Subject: st/mesa: do sanity checks on states only in debug builds X-Git-Tag: android-x86-2.2-r2~1548 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=5adcd9c9117b125cab1155c5f3af0bb51ace74b7;p=android-x86%2Fexternal-mesa.git st/mesa: do sanity checks on states only in debug builds --- diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c index e29ab46ef99..bf160fe1080 100644 --- a/src/mesa/state_tracker/st_atom.c +++ b/src/mesa/state_tracker/st_atom.c @@ -147,7 +147,11 @@ void st_validate_state( struct st_context *st ) /*printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/ +#ifdef NDEBUG + if (0) { +#else if (1) { +#endif /* Debug version which enforces various sanity checks on the * state flags which are generated and checked to help ensure * state atoms are ordered correctly in the list.