From 35a1d8a1ef2404f3862e819fb221c7f29faed368 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 4 Nov 2018 08:09:56 -0800 Subject: [PATCH] TexCache: Decode DXT1 zero alpha as black. Hardware tests show this is how it decodes, which is more like standard DXT1 decoding. --- GPU/Common/TextureDecoder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPU/Common/TextureDecoder.cpp b/GPU/Common/TextureDecoder.cpp index 5c86f2dc77..4a84fb264a 100644 --- a/GPU/Common/TextureDecoder.cpp +++ b/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); } }