From: Brian Paul Date: Wed, 6 Jan 2016 00:26:29 +0000 (-0700) Subject: st/mesa: protect debug printf() with a conditional instead of comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c75d00e054c02ac32321ee0a4e6e2932ad2ad6ad;p=mesa.git st/mesa: protect debug printf() with a conditional instead of comment --- diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index 4d6b8d6233c..c2cbcbd6fc7 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -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.