all repos — mgba @ dc33a4f173dbe3d18666deb7c928a45c4c26d66d

mGBA Game Boy Advance Emulator

GBA: Fix video callback not being called
Jeffrey Pfau jeffrey@endrift.com
Mon, 15 Jun 2015 23:02:02 -0700
commit

dc33a4f173dbe3d18666deb7c928a45c4c26d66d

parent

5c1988c48a34923fb9918970d95213b6f8a68ba4

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

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

@@ -743,14 +743,13 @@ }

} } + if (gba->stream) { + gba->stream->postVideoFrame(gba->stream, gba->video.renderer); + } struct GBAThread* thread = GBAThreadGetContext(); if (!thread) { return; - } - - if (gba->stream) { - gba->stream->postVideoFrame(gba->stream, gba->video.renderer); } if (thread->frameCallback) {
M src/platform/libretro/libretro.csrc/platform/libretro/libretro.c

@@ -172,7 +172,6 @@ int frameCount = gba.video.frameCounter;

while (gba.video.frameCounter == frameCount) { ARMRunLoop(&cpu); } - videoCallback(renderer.outputBuffer, VIDEO_HORIZONTAL_PIXELS, VIDEO_VERTICAL_PIXELS, BYTES_PER_PIXEL * 256); } void retro_reset(void) {