On macOS you cannot do this from thread. Read this comment: Multithreading GLFW? - #5 by elmindreda
So you need to do window creation and event processing on main thread.
On macOS you cannot do this from thread. Read this comment: Multithreading GLFW? - #5 by elmindreda
So you need to do window creation and event processing on main thread.