Add support for Wayland on FreeBSD and other OSes

This commit is contained in:
Greg V
2018-03-19 22:08:22 +03:00
committed by linkmauve
parent 2884915000
commit 0a3c4f5d80
5 changed files with 45 additions and 10 deletions
+4
View File
@@ -1046,8 +1046,10 @@ int _glfwPlatformInit(void)
// Sync so we got all initial output events
wl_display_roundtrip(_glfw.wl.display);
#ifdef __linux__
if (!_glfwInitJoysticksLinux())
return GLFW_FALSE;
#endif
_glfwInitTimerPOSIX();
@@ -1073,7 +1075,9 @@ int _glfwPlatformInit(void)
void _glfwPlatformTerminate(void)
{
#ifdef __linux__
_glfwTerminateJoysticksLinux();
#endif
_glfwTerminateEGL();
if (_glfw.wl.egl.handle)
{