Permalink
Browse files

TexCache: Decode DXT1 zero alpha as black.

Hardware tests show this is how it decodes, which is more like standard
DXT1 decoding.
  • Loading branch information...
unknownbrackets committed Nov 4, 2018
1 parent 38eb9d1 commit 35a1d8a1ef2404f3862e819fb221c7f29faed368
Showing with 1 addition and 2 deletions.
  1. +1 −2 GPU/Common/TextureDecoder.cpp
@@ -381,8 +381,7 @@ void DXTDecoder::DecodeColors(const DXT1Block *src, bool ignore1bitAlpha) {
int green3 = (green1 + green2 + 1) / 2;
int blue3 = (blue1 + blue2 + 1) / 2;
colors_[2] = makecol(red3, green3, blue3, 255);
// Color2 but transparent
colors_[3] = makecol(red2, green2, blue2, 0);
colors_[3] = makecol(0, 0, 0, 0);
}
}

0 comments on commit 35a1d8a

Please sign in to comment.