all repos — mgba @ 52b96e16f8f8c0829b75a819fac611964634f17c

mGBA Game Boy Advance Emulator

GBA Video: Reset renderer when reseting video
Jeffrey Pfau jeffrey@endrift.com
Thu, 20 Nov 2014 22:58:26 -0800
commit

52b96e16f8f8c0829b75a819fac611964634f17c

parent

cf55fcbb52f91059f59b59d5e8419fffdee679a2

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/gba/gba-video.csrc/gba/gba-video.c

@@ -61,6 +61,9 @@ video->oam.raw[i * 4 + 1] = 0x0000;

video->oam.raw[i * 4 + 2] = 0x0000; video->oam.raw[i * 4 + 3] = 0x0000; } + + video->renderer->deinit(video->renderer); + video->renderer->init(video->renderer); } void GBAVideoDeinit(struct GBAVideo* video) {