diff options
author | Brian Paul <[email protected]> | 2004-06-16 16:49:59 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-06-16 16:49:59 +0000 |
commit | 85ffbdd8d7ee03698dabb15db0c479f0d49599b7 (patch) | |
tree | 13839c8bcc5d3ceafbe8f00bc9ee1866485af251 /src/mesa | |
parent | ed60bc6fdcccde800a242bfe4c39670951b03ed3 (diff) |
fix component indexing bug in _mesa_texstore_al88()
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 68a089b9d03..574066ecdd3 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -1374,8 +1374,9 @@ _mesa_texstore_al88(STORE_PARAMS) for (row = 0; row < srcHeight; row++) { GLushort *dstUS = (GLushort *) dstRow; for (col = 0; col < srcWidth; col++) { - dstUS[col] = PACK_COLOR_88( CHAN_TO_UBYTE(src[ACOMP]), - CHAN_TO_UBYTE(src[RCOMP]) ); + /* src[0] is luminance, src[1] is alpha */ + dstUS[col] = PACK_COLOR_88( CHAN_TO_UBYTE(src[1]), + CHAN_TO_UBYTE(src[0]) ); src += 2; } if (dstFormat == &_mesa_texformat_al88_rev) { |