From: Brian Paul Date: Mon, 31 Jan 2011 21:09:17 +0000 (-0700) Subject: llvmpipe: fix incorrect array index in image dump code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a8c144a388a5c7275d8d223c5508c66a0612a1b0;p=mesa.git llvmpipe: fix incorrect array index in image dump code --- diff --git a/src/gallium/drivers/llvmpipe/lp_flush.c b/src/gallium/drivers/llvmpipe/lp_flush.c index 85e3cdec82c..849db06acdf 100644 --- a/src/gallium/drivers/llvmpipe/lp_flush.c +++ b/src/gallium/drivers/llvmpipe/lp_flush.c @@ -72,7 +72,7 @@ llvmpipe_flush( struct pipe_context *pipe, for (i = 0; i < llvmpipe->framebuffer.nr_cbufs; i++) { util_snprintf(filename, sizeof(filename), "cbuf%u_%u", i, frame_no); - debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.cbufs[0]); + debug_dump_surface_bmp(&llvmpipe->pipe, filename, llvmpipe->framebuffer.cbufs[i]); } if (0) {