Skip to content
Snippets Groups Projects
Commit 3da52ead authored by Tony Wasserka's avatar Tony Wasserka
Browse files

Pica/DebugUtils: Fix a bug in RGBA4 texture decoding.

parent a7ae0330
No related branches found
No related tags found
No related merge requests found
...@@ -375,9 +375,9 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture ...@@ -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; const u8* source_ptr = source + offset * 2;
u8 r = source_ptr[1] >> 4; 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 b = source_ptr[0] >> 4;
u8 a = source_ptr[0] & 0xFF; u8 a = source_ptr[0] & 0xF;
r = (r << 4) | r; r = (r << 4) | r;
g = (g << 4) | g; g = (g << 4) | g;
b = (b << 4) | b; b = (b << 4) | b;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment