GB Video: Fix state loading
Vicki Pfau vi@endrift.com
Wed, 15 Jul 2020 01:50:37 -0700
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
src/gb/video.c
→
src/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); }