all repos — mgba @ 39025dedff6bb67a0d4037c114e38d77b4abc559

mGBA Game Boy Advance Emulator

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
commit

39025dedff6bb67a0d4037c114e38d77b4abc559

parent

e141db9493f7342a091e06b4a2b0902634b76bef

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

jump to
M src/platform/sdl/gl-main.csrc/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();