summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureDecoder.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-03-15 11:34:52 +0000
committerhrydgard <hrydgard@gmail.com>2009-03-15 11:34:52 +0000
commitb1b2868c8b22553eb6583dc80fa14906fb3e8466 (patch)
tree286ab6161b1380e92ff97c7b403fbdff16b29f40 /Source/Core/VideoCommon/Src/TextureDecoder.cpp
parentb1e64cb948b90be73be579b9e5efd629afdc3b66 (diff)
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
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureDecoder.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureDecoder.cpp3
1 files changed, 2 insertions, 1 deletions
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++)