mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 08:20:30 +02:00
softgpu: Don't re-pack 8888 colors.
It's like a bad joke, but MSVC was not optimizing this out.
This commit is contained in:
1 parent
10456a09ac
commit
6de2129f98
1 file changed
+5
@@ -49,11 +49,16 @@ static inline u32 DecodeRGB565(u16 src)
|
||||
|
||||
static inline u32 DecodeRGBA8888(u32 src)
|
||||
{
|
||||
#if 1
|
||||
return src;
|
||||
#else
|
||||
// This is the order of the bits.
|
||||
u8 r = src & 0xFF;
|
||||
u8 g = (src >> 8) & 0xFF;
|
||||
u8 b = (src >> 16) & 0xFF;
|
||||
u8 a = (src >> 24) & 0xFF;
|
||||
return (a << 24) | (b << 16) | (g << 8) | r;
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline u16 RGBA8888To565(u32 value)
|
||||
|
||||
Reference in new issue
Block a user