GB Video: Always initialize palette

This commit is contained in:
Vicki Pfau 2020-07-13 18:51:58 -07:00
parent 007baef3b0
commit c28c290295
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ Emulation fixes:
- GB MBC: Fix MBC1 RAM enable bit selection
- GB MBC: Fix MBC2 bit selection
- GB Video: Fix state after skipping BIOS (fixes mgba.io/i/1715 and mgba.io/i/1716)
- GB Video: Always initialize palette
- GBA: Fix timing advancing too quickly in rare cases
- GBA BIOS: Implement dummy sound driver calls
- GBA BIOS: Improve HLE BIOS timing

View File

@ -213,6 +213,8 @@ static void GBVideoSoftwareRendererInit(struct GBVideoRenderer* renderer, enum G
softwareRenderer->lookup[i] = i;
softwareRenderer->lookup[i] = i;
}
memset(softwareRenderer->palette, 0, sizeof(softwareRenderer->palette));
}
static void GBVideoSoftwareRendererDeinit(struct GBVideoRenderer* renderer) {