mirror of https://github.com/mgba-emu/mgba.git
GBA Core: Only associate renderer if it has an output buffer
This commit is contained in:
parent
eccddde283
commit
3d402f6afd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue