summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-12-27 18:22:05 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-06 16:16:29 +0100
commit5adcd9c9117b125cab1155c5f3af0bb51ace74b7 (patch)
tree0d0f4502a46c5acef768f7b255bcb85ff500c6a1 /src
parent06286110b4fc0ff80ae21bb3d8ff9909db1f5d47 (diff)
st/mesa: do sanity checks on states only in debug builds
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_atom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c
index e29ab46ef9..bf160fe108 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.