Open julienalofs opened 10 months ago
After some investigations:
nextEventMatchingMask should only be called from the main thread
. Using viewer.init in the main thread makes the error disappear....
Error: 135 groups_y [max 0]
Error: 240 groups_x [max 0]
Error: 135 groups_y [max 0]
Error: 240 groups_x [max 0]
...
It seems the best way would be to integrate Metal for MacOS. See https://github.com/glfw/glfw/issues/1456 but it's not yet on master branch
here is a link about programming Metal in C++: https://developer.apple.com/videos/play/wwdc2022/10160/
Another alternative would be to migrate to Vulkan because GLFW now supports Vulkan on macOS via MoltenVK (https://www.glfw.org/docs/3.3/news.html#moltenvk_33).
GLFW Vulkan guide: https://www.glfw.org/docs/3.3/vulkan_guide.html
I’m not sure how stable or usable this is, but has anyone fully explored it yet? https://github.com/openglonmetal/MGL
Here are some interesting information: https://stackoverflow.com/questions/65802625/develop-using-opengl-4-x-on-osx-big-sur/
Only Windows and Linux are supported for now. It would be great to support MacOS.