all repos — mgba @ 0a48d4cc2f58423fa9fe91eaccca08cf080ca0cb

mGBA Game Boy Advance Emulator

Draw a polygon every frame, even when paused, to make sure screen is not stale (fixes #87)
Jeffrey Pfau jeffrey@endrift.com
Wed, 09 Jul 2014 23:18:34 -0700
commit

0a48d4cc2f58423fa9fe91eaccca08cf080ca0cb

parent

87913a4c338e32a2bae7e5ff51c87032c31f181d

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/sdl/gl-main.csrc/platform/sdl/gl-main.c

@@ -187,11 +187,11 @@ glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_SHORT_1_5_5_5_REV, renderer->d.outputBuffer);

#else glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, renderer->d.outputBuffer); #endif - glDrawArrays(GL_TRIANGLE_FAN, 0, 4); if (context->sync.videoFrameWait) { glFlush(); } } + glDrawArrays(GL_TRIANGLE_FAN, 0, 4); GBASyncWaitFrameEnd(&context->sync); #if SDL_VERSION_ATLEAST(2, 0, 0) SDL_GL_SwapWindow(renderer->window);