From 84aa98a5a4587629d6fa2bc9b3b07a5432c2e131 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Sun, 19 Jan 2014 09:11:07 -0700 Subject: wayland: Add bits required to run as a wayland client. --- Source/Core/DolphinWX/GLInterface/Platform.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/GLInterface/Platform.cpp') diff --git a/Source/Core/DolphinWX/GLInterface/Platform.cpp b/Source/Core/DolphinWX/GLInterface/Platform.cpp index 8094eef810..212ca49214 100644 --- a/Source/Core/DolphinWX/GLInterface/Platform.cpp +++ b/Source/Core/DolphinWX/GLInterface/Platform.cpp @@ -117,7 +117,6 @@ out: if (GLWin.dpy) { XCloseDisplay(GLWin.dpy); - XCloseDisplay(GLWin.evdpy); } } #endif @@ -219,3 +218,16 @@ cPlatform::ToggleFullscreen(bool fullscreen) // Only wayland uses this function #endif } + +void +cPlatform::SwapBuffers() +{ +#if HAVE_WAYLAND + if (cPlatform::platform == EGL_PLATFORM_WAYLAND) + WaylandInterface.SwapBuffers(); +#endif +#if HAVE_X11 + if (cPlatform::platform == EGL_PLATFORM_X11) + XInterface.SwapBuffers(); +#endif +} -- cgit v1.2.3