GBA Video: Properly clear VRAM on reset (fixes #3690)

This commit is contained in:
Vicki Pfau
2026-01-27 15:55:39 -08:00
parent d07bd463f5
commit 39bb4cf3c2
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ Emulation fixes:
- GBA Video: Fix edge case with double-height sprites wrapping (fixes mgba.io/i/2824)
- GBA Video: VCOUNTER flag should be updated on DISPSTAT write (fixes mgba.io/i/1873)
- GBA Video: Fix background toggling in OpenGL renderer (fixes mgba.io/i/2475)
- GBA Video: Properly clear VRAM on reset (fixes mgba.io/i/3690)
Other fixes:
- 3DS: Don't detach autosave thread (fixes mgba.io/i/3561)
- Core: Fix inconsistencies with setting game-specific overrides (fixes mgba.io/i/2963)
+1
View File
@@ -83,6 +83,7 @@ void GBAVideoReset(struct GBAVideo* video) {
memset(video->palette, 0, sizeof(video->palette));
memset(video->oam.raw, 0, sizeof(video->oam.raw));
memset(video->vram, 0, GBA_SIZE_VRAM);
if (!video->renderer) {
mLOG(GBA_VIDEO, FATAL, "No renderer associated");