From: José Fonseca Date: Tue, 19 Jul 2011 22:58:21 +0000 (-0700) Subject: util: Store alpha value too. X-Git-Tag: 062012170305~4896^2~497 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb7590f6772db844d95ed4937ab7c98a3f412a28;p=profile%2Fivi%2Fmesa.git util: Store alpha value too. --- diff --git a/src/gallium/auxiliary/util/u_debug.c b/src/gallium/auxiliary/util/u_debug.c index 004df43..2d61930 100644 --- a/src/gallium/auxiliary/util/u_debug.c +++ b/src/gallium/auxiliary/util/u_debug.c @@ -730,7 +730,7 @@ debug_dump_float_rgba_bmp(const char *filename, pixel.rgbRed = float_to_ubyte(ptr[x*4 + 0]); pixel.rgbGreen = float_to_ubyte(ptr[x*4 + 1]); pixel.rgbBlue = float_to_ubyte(ptr[x*4 + 2]); - pixel.rgbAlpha = 255; + pixel.rgbAlpha = float_to_ubyte(ptr[x*4 + 3]); os_stream_write(stream, &pixel, 4); } }