Mesa (master): util: Store alpha value too.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Jul 23 01:52:26 UTC 2011


Module: Mesa
Branch: master
Commit: eb7590f6772db844d95ed4937ab7c98a3f412a28
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb7590f6772db844d95ed4937ab7c98a3f412a28

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Jul 19 15:58:21 2011 -0700

util: Store alpha value too.

---

 src/gallium/auxiliary/util/u_debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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);
       }
    }




More information about the mesa-commit mailing list