From e68c0799eb98f0016d3fd0baba536e922bb54450 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 25 Jan 2020 14:06:01 -0800 Subject: [PATCH] GBA Video: Fix OAM not invalidating after reset (fixes #1630) --- CHANGES | 1 + src/gba/renderers/gl.c | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 596cf1fc3..8ccda3e3e 100644 --- a/CHANGES +++ b/CHANGES @@ -3,6 +3,7 @@ Emulation fixes: - GBA Memory: Misaligned SRAM writes are ignored - GBA Serialize: Fix serializing DMA transfer register - GBA Serialize: Fix audio DMA timing deserialization + - GBA Video: Fix OAM not invalidating after reset (fixes mgba.io/i/1630) Other fixes: - Qt: Only dynamically reset video scale if a game is running - Qt: Fix race condition with proxied video events diff --git a/src/gba/renderers/gl.c b/src/gba/renderers/gl.c index 3c433e81f..2c3da02e0 100644 --- a/src/gba/renderers/gl.c +++ b/src/gba/renderers/gl.c @@ -931,6 +931,7 @@ void GBAVideoGLRendererDeinit(struct GBAVideoRenderer* renderer) { void GBAVideoGLRendererReset(struct GBAVideoRenderer* renderer) { struct GBAVideoGLRenderer* glRenderer = (struct GBAVideoGLRenderer*) renderer; + glRenderer->oamDirty = true; glRenderer->paletteDirty = true; glRenderer->vramDirty = 0xFFFFFF; glRenderer->firstAffine = -1;