TexCache: Decode DXT1 zero alpha as black.

Hardware tests show this is how it decodes, which is more like standard
DXT1 decoding.
This commit is contained in:
Unknown W. Brackets committed 2018-11-04 08:09:56 -08:00
1 parent 38eb9d12d0
commit 35a1d8a1ef
1 file changed
+1 -2
+1 -2
View File
@@ -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);
}
}