We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aec8514 commit 4c0b453Copy full SHA for 4c0b453
1 file changed
crates/lambda-rs-platform/src/wgpu/texture.rs
@@ -664,10 +664,8 @@ impl SamplerBuilder {
664
max_supported_anisotropy: u16,
665
) -> wgpu::SamplerDescriptor<'_> {
666
let max_supported_anisotropy = max_supported_anisotropy.clamp(1, 16);
667
- let mut anisotropy_clamp = self
668
- .anisotropy_clamp
669
- .clamp(1, 16)
670
- .min(max_supported_anisotropy);
+ let mut anisotropy_clamp =
+ self.anisotropy_clamp.min(max_supported_anisotropy);
671
if anisotropy_clamp > 1
672
&& !matches!(
673
(self.min_filter, self.mag_filter, self.mipmap_filter),
0 commit comments