From b1b2868c8b22553eb6583dc80fa14906fb3e8466 Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sun, 15 Mar 2009 11:34:52 +0000 Subject: [PATCH] Fix the nasty black fringes seen around alpha tested DXT textures in some games. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2661 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/TextureDecoder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/Src/TextureDecoder.cpp b/Source/Core/VideoCommon/Src/TextureDecoder.cpp index 6cb4e42237..697a3b58bd 100644 --- a/Source/Core/VideoCommon/Src/TextureDecoder.cpp +++ b/Source/Core/VideoCommon/Src/TextureDecoder.cpp @@ -311,7 +311,8 @@ void decodeDXTBlock(u32 *dst, const DXTBlock *src, int pitch) colors[0] = makecol(red1, green1, blue1, 255); colors[1] = makecol(red2, green2, blue2, 255); colors[2] = makecol((red1+red2)/2, (green1+green2)/2, (blue1+blue2)/2, 255); - colors[3] = makecol(0,0,0,0); //transparent + // Not sure whether to use color 1 or 2 here. Let's try the average :P + colors[3] = makecol((red1+red2)/2, (green1+green2)/2, (blue1+blue2)/2, 0); // 0 alpha, transparent } for (int y = 0; y < 4; y++)