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
This commit is contained in:
hrydgard 2009-03-15 11:34:52 +00:00
parent b1e64cb948
commit b1b2868c8b
1 changed files with 2 additions and 1 deletions

View File

@ -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++)