- Whoops. DXT5 decompression got the alpha values wrong. That's "wrong" as in "garbage", since

yalphaslice was never initialized to anything. (I should probably test this to make sure I
  actually got it right now...)

SVN r2205 (trunk)
This commit is contained in:
Randy Heit 2010-03-09 03:18:31 +00:00
parent 593a050778
commit 1f12c3dd8e

View file

@ -831,7 +831,7 @@ void FDDSTexture::DecompressDXT5 (FWadLump &lump, bool premultiplied, BYTE *tcbu
break; break;
} }
// Alpha values are stored in 3 bytes for 2 rows // Alpha values are stored in 3 bytes for 2 rows
if ((y & 0) == 0) if ((y & 1) == 0)
{ {
yalphaslice = block[y*3] | (block[y*3+1] << 8) | (block[y*3+2] << 16); yalphaslice = block[y*3] | (block[y*3+1] << 8) | (block[y*3+2] << 16);
} }