GBA Core: Only associate renderer if it has an output buffer

This commit is contained in:
Jeffrey Pfau 2016-02-07 15:08:12 -08:00
parent eccddde283
commit 3d402f6afd
1 changed files with 3 additions and 1 deletions

View File

@ -152,7 +152,9 @@ static void _GBACoreUnloadROM(struct mCore* core) {
static void _GBACoreReset(struct mCore* core) {
struct GBACore* gbacore = (struct GBACore*) core;
struct GBA* gba = (struct GBA*) core->board;
GBAVideoAssociateRenderer(&gba->video, &gbacore->renderer.d);
if (gbacore->renderer.outputBuffer) {
GBAVideoAssociateRenderer(&gba->video, &gbacore->renderer.d);
}
ARMReset(core->cpu);
if (core->opts.skipBios) {
GBASkipBIOS(core->board);