diff options
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 +} |
