Mesa (master): mesa: fix alpha value for texstore_rgbx8888

Brian Paul brianp at kemper.freedesktop.org
Tue Apr 5 13:53:39 UTC 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Apr  5 07:53:05 2011 -0600

mesa: fix alpha value for texstore_rgbx8888

Silences constant overflow compiler warning.

---

 src/mesa/main/texstore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index eb37490..13fae3b 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -3182,7 +3182,7 @@ _mesa_texstore_signed_rgbx8888(TEXSTORE_PARAMS)
                dst[3] = FLOAT_TO_BYTE_TEX(srcRow[RCOMP]);
                dst[2] = FLOAT_TO_BYTE_TEX(srcRow[GCOMP]);
                dst[1] = FLOAT_TO_BYTE_TEX(srcRow[BCOMP]);
-               dst[0] = 0xff;
+               dst[0] = 127;
                srcRow += 3;
                dst += 4;
             }




More information about the mesa-commit mailing list