mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 18:48:56 -06:00
wayland: Add bits required to run as a wayland client.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user