mirror of
https://github.com/mgba-emu/mgba.git
synced 2026-10-12 02:18:55 +00:00
GBA Video: Properly clear VRAM on reset (fixes #3690)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user