GBA: Fix video callback not being called

This commit is contained in:
Jeffrey Pfau 2015-06-15 23:02:02 -07:00
parent 5c1988c48a
commit dc33a4f173
2 changed files with 3 additions and 5 deletions

View File

@ -743,16 +743,15 @@ void GBAFrameEnded(struct GBA* gba) {
} }
} }
if (gba->stream) {
gba->stream->postVideoFrame(gba->stream, gba->video.renderer);
}
struct GBAThread* thread = GBAThreadGetContext(); struct GBAThread* thread = GBAThreadGetContext();
if (!thread) { if (!thread) {
return; return;
} }
if (gba->stream) {
gba->stream->postVideoFrame(gba->stream, gba->video.renderer);
}
if (thread->frameCallback) { if (thread->frameCallback) {
thread->frameCallback(thread); thread->frameCallback(thread);
} }

View File

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