From e58096cebab4b8d757c965417251942a29510266 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 11 Sep 2017 00:41:02 -0700 Subject: [PATCH] GBA BIOS: Use core's VRAM variable instead of renderer's --- CHANGES | 1 + src/gba/bios.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index ab6afa272..d07da9706 100644 --- a/CHANGES +++ b/CHANGES @@ -22,6 +22,7 @@ Bugfixes: - GB Memory: Actually load latch time from savestate - GB, GBA: Fix sync to video with frameskip - GB Audio: Fix NRx2 writes while active (fixes mgba.io/i/866) + - GBA BIOS: Use core's VRAM variable instead of renderer's Misc: - Qt: Don't rebuild library view if style hasn't changed - SDL: Fix 2.0.5 build on macOS under some circumstances diff --git a/src/gba/bios.c b/src/gba/bios.c index ae3b23ed2..65014898e 100644 --- a/src/gba/bios.c +++ b/src/gba/bios.c @@ -61,7 +61,7 @@ static void _RegisterRamReset(struct GBA* gba) { memset(gba->video.palette, 0, SIZE_PALETTE_RAM); } if (registers & 0x08) { - memset(gba->video.renderer->vram, 0, SIZE_VRAM); + memset(gba->video.vram, 0, SIZE_VRAM); } if (registers & 0x10) { memset(gba->video.oam.raw, 0, SIZE_OAM);