mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 06:29:00 +01:00
[Android] Fix Android not calling eglSwapBuffers
This isn't the cleanup that GLInterface needs, but for now it makes it so it'll swap and not just black screen A cleanup to GLInterface will be coming in a couple weeks.
This commit is contained in:
parent
5df958fe23
commit
990be70eb7
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user