summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-01-29 15:08:32 -0800
committerPierre Bourdon <delroth@gmail.com>2014-01-29 15:08:32 -0800
commit72cc6431e5654250b49cb7d2c0efce42a8340c8a (patch)
treed4b5cd73b3f99515676359524039eb6cb5ca1aff /Source
parent23e64001dd62a2723a01ffc3b216b20bf8b66e66 (diff)
parent990be70eb7c59e42907ce212bd92def7df33e602 (diff)
Merge pull request #9 from Sonicadvance1/Fix-AndroidRender
[Android] Fix Android not calling eglSwapBuffers
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinWX/GLInterface/Platform.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinWX/GLInterface/Platform.cpp b/Source/Core/DolphinWX/GLInterface/Platform.cpp
index d020a83fdb..98d0db9441 100644
--- a/Source/Core/DolphinWX/GLInterface/Platform.cpp
+++ b/Source/Core/DolphinWX/GLInterface/Platform.cpp
@@ -120,6 +120,9 @@ out:
}
}
#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
}