summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorRyan Houdek <ryan.houdek@codethink.co.uk>2014-01-29 15:54:55 -0600
committerRyan Houdek <ryan.houdek@codethink.co.uk>2014-01-29 15:54:55 -0600
commit990be70eb7c59e42907ce212bd92def7df33e602 (patch)
treef1cf765f2205dbd631254a27d9df2f23129e4555 /Source
parent5df958fe23e212436ed2e651b2533ec9243844e9 (diff)
[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.
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
}