diff options
| author | Scott Moreau <oreaus@gmail.com> | 2014-01-19 09:11:07 -0700 |
|---|---|---|
| committer | Scott Moreau <oreaus@gmail.com> | 2014-01-19 10:36:20 -0700 |
| commit | 84aa98a5a4587629d6fa2bc9b3b07a5432c2e131 (patch) | |
| tree | e62a8f2ff2a0d6be51496f61a7e3622c1ad7f5b0 /Source/Core/DolphinWX/GLInterface/Platform.cpp | |
| parent | 3b25bf2f14189d74cd7dd00b32d8b20b9df3e024 (diff) | |
wayland: Add bits required to run as a wayland client.
Diffstat (limited to 'Source/Core/DolphinWX/GLInterface/Platform.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GLInterface/Platform.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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 +} |
