all repos — mgba @ 5ee1dfcea7fb0de91b976e047053b8b1aace0d84

mGBA Game Boy Advance Emulator

GBA Core: Fix initializing video render buffer
Jeffrey Pfau jeffrey@endrift.com
Sun, 28 Feb 2016 11:24:11 -0800
commit

5ee1dfcea7fb0de91b976e047053b8b1aace0d84

parent

24f0be2862fe39219c4e2dcc615b0c76cbb700b6

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

jump to
M src/gba/core.csrc/gba/core.c

@@ -44,6 +44,7 @@ ARMSetComponents(cpu, &gba->d, GBA_COMPONENT_MAX, gbacore->components);

ARMInit(cpu); GBAVideoSoftwareRendererCreate(&gbacore->renderer); + gbacore->renderer.outputBuffer = NULL; gbacore->keys = 0; gba->keySource = &gbacore->keys;
M src/platform/test/perf-main.csrc/platform/test/perf-main.c

@@ -103,10 +103,6 @@ if (!core) {

didFail = 1; goto cleanup; } - - if (!perfOpts.noVideo) { - core->setVideoBuffer(core, outputBuffer, 256); - } if (perfOpts.savestate) { _savestate = VFileOpen(perfOpts.savestate, O_RDONLY); free(perfOpts.savestate);

@@ -116,6 +112,9 @@ // TODO: Put back debugger

char gameCode[5] = { 0 }; core->init(core); + if (!perfOpts.noVideo) { + core->setVideoBuffer(core, outputBuffer, 256); + } mCoreLoadFile(core, args.fname); mCoreConfigInit(&core->config, "perf"); mCoreConfigLoad(&core->config);