all repos — mgba @ 307982116e0776798f65d96d3a5048a1492855c1

mGBA Game Boy Advance Emulator

GB Video: Reset renderer when loading state
Vicki Pfau vi@endrift.com
Mon, 12 Jun 2017 22:13:01 -0700
commit

307982116e0776798f65d96d3a5048a1492855c1

parent

edeaba2e7ce3d3cfd66c4381e057c0a18f1b04c8

2 files changed, 4 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -67,6 +67,7 @@ - LR35902: Fix decoding LD r, $imm and 0-valued immediates (fixes mgba.io/i/735)

- GB: Fix STAT blocking - GB MBC: Fix swapping carts not detect new MBC - GB Timer: Fix DIV batching if TAC changes + - GB Video: Reset renderer when loading state Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gb/video.csrc/gb/video.c

@@ -628,4 +628,7 @@ memcpy(&video->oam.raw, state->oam, GB_SIZE_OAM);

_cleanOAM(video, video->ly); GBVideoSwitchBank(video, video->vramCurrentBank); + + video->renderer->deinit(video->renderer); + video->renderer->init(video->renderer, video->p->model); }