projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7339d4
)
mesa: fix alpha value for texstore_rgbx8888
author
Brian Paul
<brianp@vmware.com>
Tue, 5 Apr 2011 13:53:05 +0000
(07:53 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index eb37490e1f69299d64e0ed83794f019e8c41c6e0..13fae3bf98c775813359eb17e6fba9de98aa7a10 100644
(file)
--- 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;
}