projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0628611
)
st/mesa: do sanity checks on states only in debug builds
author
Marek Olšák
<maraeo@gmail.com>
Mon, 27 Dec 2010 17:22:05 +0000
(18:22 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 6 Jan 2011 15:16:29 +0000
(16:16 +0100)
src/mesa/state_tracker/st_atom.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom.c
b/src/mesa/state_tracker/st_atom.c
index e29ab46ef9985584542b01d9cc55694c6ada321a..bf160fe10809bcbe6c576918f628c69fe3618c05 100644
(file)
--- 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.