projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89e20ab
)
AL1616: Fix cut-and-paste bug
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 18 Nov 2009 06:53:06 +0000
(22:53 -0800)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 18 Nov 2009 06:53:06 +0000
(22:53 -0800)
One of the PACK_COLOR_88 cases was left over from copying
_mesa_texstore_al88 to _mesa_texstore_al1616.
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index abb4ed26631c82a263a0de3e391888bac5fd4f62..5387eb12837a833001f4952b46638c7899d3ecbc 100644
(file)
--- a/
src/mesa/main/texstore.c
+++ b/
src/mesa/main/texstore.c
@@
-2198,8
+2198,8
@@
_mesa_texstore_al1616(TEXSTORE_PARAMS)
if (dstFormat == MESA_FORMAT_AL1616) {
for (col = 0; col < srcWidth; col++) {
/* src[0] is luminance, src[1] is alpha */
- dstUI[col] = PACK_COLOR_
88
( FLOAT_TO_USHORT(src[1]),
- FLOAT_TO_USHORT(src[0]) );
+ dstUI[col] = PACK_COLOR_
1616
( FLOAT_TO_USHORT(src[1]),
+
FLOAT_TO_USHORT(src[0]) );
src += 2;
}
}