From f349cd1b499b0fed02ef463ad540f60f97b30dda Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Sun, 3 Mar 2019 18:48:50 +0000 Subject: [PATCH] Fix packing order issue (thanks @mrneo240!) --- GL/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GL/texture.c b/GL/texture.c index 831012a..d6fbfdc 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -55,7 +55,7 @@ void _glApplyColorTable() { GLushort i = 0; for(; i < src->width; ++i) { GLubyte* entry = &src->data[i * 4]; - pvr_set_pal_entry(i, PACK_ARGB8888(entry[3], entry[1], entry[2], entry[0])); + pvr_set_pal_entry(i, PACK_ARGB8888(entry[3], entry[0], entry[1], entry[2])); } }