Fix palette calculation on XBGR1555 mode

This commit is contained in:
David Guillen Fandos 2021-07-20 23:09:14 +02:00
parent a8d99d993f
commit 3009504613
1 changed files with 1 additions and 1 deletions

View File

@ -2907,7 +2907,7 @@ static void emit_pmemst_stub(
#elif defined(USE_XBGR1555_FORMAT)
/* PS2's native format */
#define palette_convert() \
mips_emit_andi(reg_temp, reg_temp, 0x7FFF);
mips_emit_andi(reg_temp, reg_a1, 0x7FFF);
#else
/* 0BGR to RGB565 (clobbers a0) */
#ifdef MIPS_HAS_R2_INSTS