mirror of
https://github.com/glfw/glfw.git
synced 2026-01-11 23:33:16 +01:00
Make timer init part of platform API
This is part of runtime platform selection because the null backend needs the timer implementation for the current OS.
This commit is contained in:
@@ -1227,8 +1227,6 @@ int _glfwPlatformInit(void)
|
||||
// Sync so we got all initial output events
|
||||
wl_display_roundtrip(_glfw.wl.display);
|
||||
|
||||
_glfwInitTimerPOSIX();
|
||||
|
||||
_glfw.wl.timerfd = -1;
|
||||
if (_glfw.wl.seatVersion >= 4)
|
||||
_glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
|
||||
|
||||
Reference in New Issue
Block a user