mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Pica/DebugUtils: Fix a bug in RGBA4 texture decoding.
This commit is contained in:
parent
a7ae0330b1
commit
3da52ead9b
1 changed files with 2 additions and 2 deletions
|
@ -375,9 +375,9 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
|
|||
{
|
||||
const u8* source_ptr = source + offset * 2;
|
||||
u8 r = source_ptr[1] >> 4;
|
||||
u8 g = source_ptr[1] & 0xFF;
|
||||
u8 g = source_ptr[1] & 0xF;
|
||||
u8 b = source_ptr[0] >> 4;
|
||||
u8 a = source_ptr[0] & 0xFF;
|
||||
u8 a = source_ptr[0] & 0xF;
|
||||
r = (r << 4) | r;
|
||||
g = (g << 4) | g;
|
||||
b = (b << 4) | b;
|
||||
|
|
Loading…
Reference in a new issue