Permalink
Browse files

TexCache: In DXT3, don't swizzle alpha.

Hardware doesn't seem to.
  • Loading branch information...
unknownbrackets committed Nov 4, 2018
1 parent c31e017 commit df200fc3d2ad5405497914921a66c9c312223eda
Showing with 1 addition and 2 deletions.
  1. +1 −2 GPU/Common/TextureDecoder.cpp
@@ -431,8 +431,7 @@ void DXTDecoder::WriteColorsDXT3(u32 *dst, const DXT3Block *src, int pitch, int
int colordata = src->color.lines[y];
u32 alphadata = src->alphaLines[y];
for (int x = 0; x < 4; x++) {
const u8 a4 = alphadata & 0xF;
dst[x] = colors_[colordata & 3] | (a4 << 24) | (a4 << 28);
dst[x] = colors_[colordata & 3] | (alphadata << 28);
colordata >>= 2;
alphadata >>= 4;
}

0 comments on commit df200fc

Please sign in to comment.