TerraForge3D
TerraForge3D copied to clipboard
macOS build fails to launch with error: GLFW Error: 65543: Requested OpenGL version 4.3, got version 4.1
Describe the bug Fails to launch on macOS due to wrong version of OpenGL present.
To Reproduce Steps to reproduce the behavior:
- Build gen3 branch for macOS, see: https://github.com/Jaysmito101/TerraForge3D/pull/56
- Run
./build/tf3d
- See error
GLFW Error: 65543: Requested OpenGL version 4.3, got version 4.1
Desktop (please complete the following information):
- OS: macOS
- Version: Ventura 13.5
Additional context macOS has deprecated OpenGL and the version that ships with macOS is stuck at 4.1 (until it will presumably be removed entirely).
Presumably the features from 4.3 (compute shaders, etc.) are required, so we can't simply downgrade to 4.1.
If this is the case, it will probably be required to switch to Vulkan and a Vulkan-atop-Metal library like MoltenVK on macOS. This is, afaik, what the Godot project has done.
There is also the Zink project, which implements OpenGL on Vulkan, which may be another option: https://www.collabora.com/news-and-blog/blog/2018/10/31/introducing-zink-opengl-implementation-vulkan/