Permalink
Browse files

SDL: Fix compilation with OpenGL ES 2

  • Loading branch information...
ccawley2011 authored and endrift committed Jan 29, 2018
1 parent f039234 commit 4f8fe384b3255b0df373ab949451313e657c77c0
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/platform/sdl/gles2-sdl.c
@@ -123,15 +123,15 @@ void mSDLGLES2Runloop(struct mSDLRenderer* renderer, void* 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);

0 comments on commit 4f8fe38

Please sign in to comment.