llvmpipe: update image dump/debug code

This commit is contained in:
Brian Paul 2010-05-10 16:45:25 -06:00
parent bd34f61a7a
commit 47ecb51eb4
1 changed files with 17 additions and 16 deletions

View File

@ -31,6 +31,7 @@
#include "pipe/p_defines.h"
#include "util/u_string.h"
#include "draw/draw_context.h"
#include "lp_flush.h"
#include "lp_context.h"
@ -71,7 +72,7 @@ llvmpipe_flush( struct pipe_context *pipe,
}
/* Enable to dump BMPs of the color/depth buffers each frame */
#if 0
if (0) {
if (flags & PIPE_FLUSH_FRAME) {
static unsigned frame_no = 1;
char filename[256];
@ -89,7 +90,7 @@ llvmpipe_flush( struct pipe_context *pipe,
++frame_no;
}
#endif
}
}