mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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:
1 parent
38eb9d12d0
commit
35a1d8a1ef
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user