Merge pull request #9 from Sonicadvance1/Fix-AndroidRender
[Android] Fix Android not calling eglSwapBuffers
This commit is contained in:
commit
72cc6431e5
|
@ -119,6 +119,9 @@ out:
|
||||||
XCloseDisplay(GLWin.dpy);
|
XCloseDisplay(GLWin.dpy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
#if ANDROID
|
||||||
|
selected_platform = EGL_PLATFORM_ANDROID;
|
||||||
#endif
|
#endif
|
||||||
if (selected_platform == EGL_PLATFORM_NONE)
|
if (selected_platform == EGL_PLATFORM_NONE)
|
||||||
return false;
|
return false;
|
||||||
|
@ -230,4 +233,7 @@ cPlatform::SwapBuffers()
|
||||||
if (cPlatform::platform == EGL_PLATFORM_X11)
|
if (cPlatform::platform == EGL_PLATFORM_X11)
|
||||||
XInterface.SwapBuffers();
|
XInterface.SwapBuffers();
|
||||||
#endif
|
#endif
|
||||||
|
#if ANDROID
|
||||||
|
eglSwapBuffers(GLWin.egl_dpy, GLWin.egl_surf);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue