all repos — mgba @ 4f8fe384b3255b0df373ab949451313e657c77c0

mGBA Game Boy Advance Emulator

SDL: Fix compilation with OpenGL ES 2
Cameron Cawley ccawley2011@gmail.com
Mon, 29 Jan 2018 17:25:40 +0000
commit

4f8fe384b3255b0df373ab949451313e657c77c0

parent

f039234055a00181becf186ebceee71bfbbdc597

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

jump to
M src/platform/sdl/gles2-sdl.csrc/platform/sdl/gles2-sdl.c

@@ -123,15 +123,15 @@ struct mCoreThread* context = user;

SDL_Event event; struct VideoBackend* v = &renderer->gl2.d; - while (context->state < THREAD_EXITING) { + while (mCoreThreadIsActive(context)) { while (SDL_PollEvent(&event)) { mSDLHandleEvent(context, &renderer->player, &event); } - if (mCoreSyncWaitFrameStart(&context->sync)) { + if (mCoreSyncWaitFrameStart(&context->impl->sync)) { v->postFrame(v, renderer->outputBuffer); } - mCoreSyncWaitFrameEnd(&context->sync); + mCoreSyncWaitFrameEnd(&context->impl->sync); v->drawFrame(v); #ifdef BUILD_RASPI eglSwapBuffers(renderer->display, renderer->surface);