wayland: Add bits required to run as a wayland client.

This commit is contained in:
Scott Moreau
2014-01-19 09:11:07 -07:00
parent 3b25bf2f14
commit 84aa98a5a4
9 changed files with 105 additions and 80 deletions

View File

@ -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
}