GBA BIOS: Use core's VRAM variable instead of renderer's

This commit is contained in:
Vicki Pfau 2017-09-11 00:41:02 -07:00
parent 5b395aafe0
commit e58096ceba
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ Bugfixes:
- GB Memory: Actually load latch time from savestate - GB Memory: Actually load latch time from savestate
- GB, GBA: Fix sync to video with frameskip - GB, GBA: Fix sync to video with frameskip
- GB Audio: Fix NRx2 writes while active (fixes mgba.io/i/866) - GB Audio: Fix NRx2 writes while active (fixes mgba.io/i/866)
- GBA BIOS: Use core's VRAM variable instead of renderer's
Misc: Misc:
- Qt: Don't rebuild library view if style hasn't changed - Qt: Don't rebuild library view if style hasn't changed
- SDL: Fix 2.0.5 build on macOS under some circumstances - SDL: Fix 2.0.5 build on macOS under some circumstances

View File

@ -61,7 +61,7 @@ static void _RegisterRamReset(struct GBA* gba) {
memset(gba->video.palette, 0, SIZE_PALETTE_RAM); memset(gba->video.palette, 0, SIZE_PALETTE_RAM);
} }
if (registers & 0x08) { if (registers & 0x08) {
memset(gba->video.renderer->vram, 0, SIZE_VRAM); memset(gba->video.vram, 0, SIZE_VRAM);
} }
if (registers & 0x10) { if (registers & 0x10) {
memset(gba->video.oam.raw, 0, SIZE_OAM); memset(gba->video.oam.raw, 0, SIZE_OAM);