mesa: fix alpha value for texstore_rgbx8888
authorBrian Paul <brianp@vmware.com>
Tue, 5 Apr 2011 13:53:05 +0000 (07:53 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 5 Apr 2011 13:53:09 +0000 (07:53 -0600)
Silences constant overflow compiler warning.

src/mesa/main/texstore.c

index eb37490e1f69299d64e0ed83794f019e8c41c6e0..13fae3bf98c775813359eb17e6fba9de98aa7a10 100644 (file)
@@ -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;
             }