Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
glfw causes program to hang #68
This is because using those objects will cause the AWT to run it's event loop, and on OSX, the main thread is already used by GLFW. The solution is to set the headless property of the AWT to true.
Set that property before creating the window, then create the window. Also note that you have to create the fonts or the resources only after the window is created.
LWJGL 3 is not compatible with AWT on Mac OS X. This has been discussed extensively in the LWJGL forum. Even though certain workarounds can work under very specific conditions, it is highly recommended to not use AWT/Swing with LWJGL 3.