Merge pull request #405 from jbckly/patch-2

Use 0.13's Surface::get_supported_formats
pull/396/head^2
sotrh 2 years ago committed by GitHub
commit 5b8f25bd4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -83,7 +83,7 @@ let adapter = instance
.enumerate_adapters(wgpu::Backends::all()) .enumerate_adapters(wgpu::Backends::all())
.filter(|adapter| { .filter(|adapter| {
// Check if this adapter supports our surface // Check if this adapter supports our surface
surface.get_preferred_format(&adapter).is_some() surface.get_supported_formats(&adapter).len() > 0
}) })
.next() .next()
.unwrap() .unwrap()

Loading…
Cancel
Save