Merge pull request #9 from Sonicadvance1/Fix-AndroidRender

[Android] Fix Android not calling eglSwapBuffers
This commit is contained in:
Pierre Bourdon 2014-01-29 15:08:32 -08:00
commit 72cc6431e5
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,9 @@ out:
XCloseDisplay(GLWin.dpy);
}
}
#endif
#if ANDROID
selected_platform = EGL_PLATFORM_ANDROID;
#endif
if (selected_platform == EGL_PLATFORM_NONE)
return false;
@ -230,4 +233,7 @@ cPlatform::SwapBuffers()
if (cPlatform::platform == EGL_PLATFORM_X11)
XInterface.SwapBuffers();
#endif
#if ANDROID
eglSwapBuffers(GLWin.egl_dpy, GLWin.egl_surf);
#endif
}