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

Add support for running on OpenGL 4.1 with a core profile on macOS #5331

Merged
merged 1 commit into from
Mar 3, 2024

Commits on Mar 3, 2024

  1. 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.
    bes committed Mar 3, 2024
    Configuration menu
    Copy the full SHA
    30c7e73 View commit details
    Browse the repository at this point in the history