mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- 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:
parent
593a050778
commit
1f12c3dd8e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue