softgpu: Assign texture alpha value to 255 when no alpha channel is present.

This commit is contained in:
Tony Wasserka 2013-07-20 10:43:37 +02:00 committed by neobrain
parent 88348a3d73
commit 2336f4cd8c

View file

@ -83,7 +83,7 @@ u32 DecodeRGB565(u16 src)
u8 r = src & 0x1F;
u8 g = (src >> 5) & 0x3F;
u8 b = (src >> 11) & 0x1F;
u8 a = 0xff; // TODO: Might want to use 0xFF here instead?
u8 a = 0xFF;
r = (r << 3) | (r >> 2);
g = (g << 2) | (g >> 4);
b = (b << 3) | (b >> 2);