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
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/sdl/gl-main.c
→
src/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);