all repos — mgba @ c3e048d5fbcfa055ecfd7731d53ea7b70a32d2a5

mGBA Game Boy Advance Emulator

GB Video: Fix state loading
Vicki Pfau vi@endrift.com
Wed, 15 Jul 2020 01:50:37 -0700
commit

c3e048d5fbcfa055ecfd7731d53ea7b70a32d2a5

parent

746ee657d70899000daf34730ad15af5c9baac6c

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

jump to
M src/gb/video.csrc/gb/video.c

@@ -894,6 +894,9 @@ LOAD_32LE(when, 0, &state->video.nextFrame);

mTimingSchedule(&video->p->timing, &video->frameEvent, when); } + video->renderer->deinit(video->renderer); + video->renderer->init(video->renderer, video->p->model, video->sgbBorders); + size_t i; for (i = 0; i < 64; ++i) { LOAD_16LE(video->palette[i], i * 2, state->video.palette);

@@ -905,7 +908,4 @@ 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, video->sgbBorders); }