From c75d00e054c02ac32321ee0a4e6e2932ad2ad6ad Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 5 Jan 2016 17:26:29 -0700 Subject: st/mesa: protect debug printf() with a conditional instead of comment --- src/mesa/state_tracker/st_cb_bitmap.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/mesa/state_tracker') 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. -- cgit v1.2.3