Skip to content

Commit

Permalink
Same for device_features
Browse files Browse the repository at this point in the history
  • Loading branch information
expenses committed Jan 9, 2023
1 parent 14ee17e commit a28281e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wgpu/src/backend/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1283,7 +1283,9 @@ impl crate::Context for Context {
fn device_features(&self, device: &Self::DeviceId) -> wgt::Features {
let features = device.0.features();

let features_set: js_sys::Set = features.unchecked_into();
let features_set: js_sys::Set = features
.dyn_into()
.expect("device.features() is not setlike");

let mut features = wgt::Features::empty();

Expand Down

0 comments on commit a28281e

Please sign in to comment.