intel: Reset the buffer offset after releasing reference to packed upload
[mesa.git] / src / mesa / state_tracker / st_atom.c
index e29ab46ef9985584542b01d9cc55694c6ada321a..bf160fe10809bcbe6c576918f628c69fe3618c05 100644 (file)
@@ -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.