util: Store alpha value too.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 19 Jul 2011 22:58:21 +0000 (15:58 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 23 Jul 2011 01:52:08 +0000 (18:52 -0700)
src/gallium/auxiliary/util/u_debug.c

index 004df439ff516b32a76a0bb044b165335006956e..2d6193039a703d0ed3cd6038c1e3a4591462a3df 100644 (file)
@@ -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);
       }
    }