-
Notifications
You must be signed in to change notification settings - Fork 935
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
Fix missing family check flag #5744
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Wondering though why this line here isn't an issue? https://github.com/gfx-rs/wgpu/blob/trunk/wgpu-hal/src/metal/adapter.rs#L515 It seems that in order to determine family_check
we first do a family check..?
|
This only landed in the |
oh shoot, I didn't pay enough attention there. Thank you so much @Friz64 for pointing this out! @VladasZ we usually first push to (luckily this patch would be perfectly fine for backporting, so it's alright to release it with 0.20.1) |
* fix: missed family check flag * fix: fmt and changelog
Description
iOS 12 doesn't have
supports_family
method and it crashes when this method is called. There was already a check for that usingfamily_check
flag. But it was missing in one place.Xcode crash logs:
Testing
I ran it on my iPhone 5s and it didn't crash.
Checklist
cargo fmt
.cargo clippy
. If applicable, add:--target wasm32-unknown-unknown
--target wasm32-unknown-emscripten
cargo xtask test
to run tests.CHANGELOG.md
. See simple instructions inside file.