Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for running on OpenGL 4.1 with a core profile on macOS
When running wgpu with an OpenGL context on macOS that is created with a core profile and with the forward-compatibility bit set, the MAX_VARYING_COMPONENTS constant returns 0 when queried. The default value is 60, so we return the default value if the query returns 0. We also need to use `#version 140` on macOS since `#version 130` isn't accepted. Since `#version 140` should be available from OpenGL 3.1, we use that everywhere. That way we don't need any specific macOS flags or features.
- Loading branch information