st/mesa: protect debug printf() with a conditional instead of comment
authorBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 00:26:29 +0000 (17:26 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2016 22:53:46 +0000 (15:53 -0700)
src/mesa/state_tracker/st_cb_bitmap.c

index 4d6b8d6233c3c1f2871c42d33cfc5d6b47eb7503..c2cbcbd6fc7b67fb47fd5a571c81dbce1b10215b 100644 (file)
@@ -494,11 +494,11 @@ st_flush_bitmap_cache(struct st_context *st)
 
       assert(cache->xmin <= cache->xmax);
 
-/*    printf("flush size %d x %d  at %d, %d\n",
-             cache->xmax - cache->xmin,
-             cache->ymax - cache->ymin,
-             cache->xpos, cache->ypos);
-*/
+      if (0)
+         printf("flush bitmap, size %d x %d  at %d, %d\n",
+                cache->xmax - cache->xmin,
+                cache->ymax - cache->ymin,
+                cache->xpos, cache->ypos);
 
       /* The texture transfer has been mapped until now.
        * So unmap and release the texture transfer before drawing.