Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
drhaynes opened this issue Dec 14, 2023 · 1 comment

Comments

@drhaynes
Copy link
Contributor

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: macOS compilation fixes #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/

@Jaysmito101
Copy link
Owner

I did start working on a Vulkan version (Vulkan branch) a few months ago but It was taking way too much time doing it all by myself so I kind of stalled on that and moved on improving the core features of this and making it more optimized. I dont really plan on resuming the Vulkan version any time soon.

In my option zink is really the best option out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants