TerraForge3D icon indicating copy to clipboard operation
TerraForge3D copied to clipboard

macOS build fails to launch with error: GLFW Error: 65543: Requested OpenGL version 4.3, got version 4.1

Open drhaynes opened this issue 6 months ago • 1 comments

Describe the bug Fails to launch on macOS due to wrong version of OpenGL present.

To Reproduce Steps to reproduce the behavior:

  1. Build gen3 branch for macOS, see: https://github.com/Jaysmito101/TerraForge3D/pull/56
  2. Run ./build/tf3d
  3. 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/

drhaynes avatar Dec 14 '23 17:12 drhaynes