GB Video: Fix proxy renderer for GBC
Vicki Pfau vi@endrift.com
Tue, 18 Apr 2017 02:11:24 -0700
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
src/gb/renderers/proxy.c
→
src/gb/renderers/proxy.c
@@ -59,9 +59,13 @@ proxyRenderer->backend->cache = NULL;
} } -static void _reset(struct GBVideoProxyRenderer* proxyRenderer) { +static void _reset(struct GBVideoProxyRenderer* proxyRenderer, enum GBModel model) { memcpy(proxyRenderer->logger->oam, &proxyRenderer->d.oam->raw, GB_SIZE_OAM); memcpy(proxyRenderer->logger->vram, proxyRenderer->d.vram, GB_SIZE_VRAM); + + + proxyRenderer->backend->deinit(proxyRenderer->backend); + proxyRenderer->backend->init(proxyRenderer->backend, model); mVideoLoggerRendererReset(proxyRenderer->logger); }@@ -76,7 +80,7 @@ renderer->d.cache = renderer->backend->cache;
renderer->d.vram = video->vram; renderer->d.oam = &video->oam; _init(renderer); - _reset(renderer); + _reset(renderer, video->p->model); } void GBVideoProxyRendererUnshim(struct GBVideo* video, struct GBVideoProxyRenderer* renderer) {