GHOST_TSuccess
GHOST_WindowSDL::swapBuffers()
{
	if (getDrawingContextType() == GHOST_kDrawingContextTypeOpenGL) {
		SDL_GL_SwapWindow(m_sdl_win);
		return GHOST_kSuccess;
	}
	else {
		return GHOST_kFailure;
	}
}
GHOST_TSuccess
GHOST_WindowWayland::swapBuffers()
{
	if (getDrawingContextType() == GHOST_kDrawingContextTypeOpenGL) {
		EGL_CHK(eglSwapBuffers(
		            m_system->getEglDisplay(),
		            m_egl_surface));
		return GHOST_kSuccess;
	}
	else {
		return GHOST_kFailure;
	}
}