summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-04-05 07:53:05 -0600
committerBrian Paul <[email protected]>2011-04-05 07:53:09 -0600
commit8778bf221e90e9b59caad02ab72a0a0edcfe2451 (patch)
treeddd511765e0cedbc3a603add8ac446fd54cd29ca
parentc7339d42c603048c0f89276da6576647c4421ba0 (diff)
mesa: fix alpha value for texstore_rgbx8888
Silences constant overflow compiler warning.
-rw-r--r--src/mesa/main/texstore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index eb37490e1f6..13fae3bf98c 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;
}