diff options
author | José Fonseca <[email protected]> | 2011-07-19 15:58:21 -0700 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-07-22 18:52:08 -0700 |
commit | eb7590f6772db844d95ed4937ab7c98a3f412a28 (patch) | |
tree | ef69abf1a16d15024d4db1c0976c42d1f099dadc /src/gallium/auxiliary/util/u_debug.c | |
parent | edaadd94cbae45dc3c1c5481e346f729ea2bc73b (diff) |
util: Store alpha value too.
Diffstat (limited to 'src/gallium/auxiliary/util/u_debug.c')
-rw-r--r-- | 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 004df439ff5..2d6193039a7 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); } } |