mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 14:28:08 +02:00
st/mesa: do sanity checks on states only in debug builds
This commit is contained in:
parent
06286110b4
commit
5adcd9c911
1 changed files with 4 additions and 0 deletions
|
|
@ -147,7 +147,11 @@ void st_validate_state( struct st_context *st )
|
||||||
|
|
||||||
/*printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/
|
/*printf("%s %x/%x\n", __FUNCTION__, state->mesa, state->st);*/
|
||||||
|
|
||||||
|
#ifdef NDEBUG
|
||||||
|
if (0) {
|
||||||
|
#else
|
||||||
if (1) {
|
if (1) {
|
||||||
|
#endif
|
||||||
/* Debug version which enforces various sanity checks on the
|
/* Debug version which enforces various sanity checks on the
|
||||||
* state flags which are generated and checked to help ensure
|
* state flags which are generated and checked to help ensure
|
||||||
* state atoms are ordered correctly in the list.
|
* state atoms are ordered correctly in the list.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue