Ensure that video buffers are flushed to the GPU before unlocking the mutex
Jeffrey Pfau jeffrey@endrift.com
Thu, 16 Jan 2014 01:05:32 -0800
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/platform/sdl/gl-main.c
→
src/platform/sdl/gl-main.c
@@ -150,6 +150,7 @@ #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); + glFlush(); } GBASyncWaitFrameEnd(&context->sync); SDL_GL_SwapBuffers();