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

Make GLES optional on Windows & macOS #4185

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Conversation

teoxoy
Copy link
Member

@teoxoy teoxoy commented Sep 28, 2023

Checklist

  • Run cargo clippy.
  • Run cargo clippy --target wasm32-unknown-unknown if applicable.
  • Add change to CHANGELOG.md. See simple instructions inside file.

Connections
#4109 (comment)

Description
Users of GLES on Windows and macOS should have to opt into using the GLES backend via Angle since they'd have to package it with the app. Otherwise we might pick up a random version of Angle on their system.

@teoxoy teoxoy requested a review from a team as a code owner September 28, 2023 19:39
@cwfitzgerald
Copy link
Member

I'm hesitant to go forward with this - this seems to be moving in the opposite direction of what we want. We were trying to make features work on all platforms so that the features can be enabled everywhere (also removing the need for the second resolver). I do agree we probably shouldn't have angle enabled by default, but this may not be the right way. I'm not sure what the right way is though.

@teoxoy
Copy link
Member Author

teoxoy commented Sep 28, 2023

I haven't added any restrictions though, only made the GLES backend optional by default on the platforms that need Angle. This is similar to vulkan-portability needing MoltenVK.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, totally misread the PR when I looked at it last, half asleep. Let's do it

@cwfitzgerald cwfitzgerald merged commit fd02a12 into gfx-rs:trunk Oct 3, 2023
20 checks passed
@teoxoy teoxoy deleted the gles-opt branch October 3, 2023 21:58
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

Successfully merging this pull request may close these issues.

2 participants