Fix big endian targets state unserialize

Converted palette was missing a byte swap after state unserialization
This should likely fix WiiU graphics when using rewind and similar
techniques that rely on states.
This commit is contained in:
David Guillen Fandos 2021-11-20 11:00:42 +01:00
parent a2aa78733d
commit bc0a3cf2c1
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ bool gba_load_state(const void* src)
// Generate converted palette (since it is not saved)
for(i = 0; i < 512; i++)
{
palette_ram_converted[i] = convert_palette(palette_ram[i]);
palette_ram_converted[i] = convert_palette(eswap16(palette_ram[i]));
}
video_reload_counters();