Skip to content

Commit

Permalink
fmt unsupported_formats.contains
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Sep 30, 2023
1 parent e6b1ed4 commit 9f55eac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sugarloaf/src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ impl Context {
.copied()
.filter(|&x| {
// !unsupported_formats.contains(&x) && wgpu::TextureFormat::is_srgb(&x)
!unsupported_formats.contains(&x) && wgpu::TextureFormat::has_color_aspect(&x)
!unsupported_formats.contains(&x)
&& wgpu::TextureFormat::has_color_aspect(&x)
})
.collect();

Expand Down

0 comments on commit 9f55eac

Please sign in to comment.