all repos — mgba @ a19928f030e6881be7c7a63898c1aeff946860c2

mGBA Game Boy Advance Emulator

GB, GBA Video: Fix cache pointer leaking between instances
Vicki Pfau vi@endrift.com
Mon, 25 Jun 2018 10:23:36 -0700
commit

a19928f030e6881be7c7a63898c1aeff946860c2

parent

6d4d014cfddedde7a46c3ced171669594b911a7b

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

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

@@ -147,7 +147,7 @@ video->renderer->writePalette(video->renderer, 9 * 4 + 3, video->palette[9 * 4 + 3]);

} void GBVideoDeinit(struct GBVideo* video) { - GBVideoAssociateRenderer(video, &dummyRenderer); + video->renderer->deinit(video->renderer); mappedMemoryFree(video->vram, GB_SIZE_VRAM); if (video->renderer->sgbCharRam) { mappedMemoryFree(video->renderer->sgbCharRam, SGB_SIZE_CHAR_RAM);
M src/gba/video.csrc/gba/video.c

@@ -103,7 +103,7 @@ video->renderer->init(video->renderer);

} void GBAVideoDeinit(struct GBAVideo* video) { - GBAVideoAssociateRenderer(video, &dummyRenderer); + video->renderer->deinit(video->renderer); mappedMemoryFree(video->vram, SIZE_VRAM); }