From 1e968c4ade125dce33434989f3e37c2b687fd52b Mon Sep 17 00:00:00 2001 From: Yakov Borevich Date: Sun, 23 Oct 2022 17:12:00 +0200 Subject: [PATCH] Respect mipmap_filter when create ImageDescriptor with linear()/nearest() fixes #6348 --- crates/bevy_render/src/texture/image.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_render/src/texture/image.rs b/crates/bevy_render/src/texture/image.rs index 36a0708a992b8..42bd2b89e5715 100644 --- a/crates/bevy_render/src/texture/image.rs +++ b/crates/bevy_render/src/texture/image.rs @@ -143,6 +143,7 @@ impl ImageSampler { wgpu::SamplerDescriptor { mag_filter: wgpu::FilterMode::Linear, min_filter: wgpu::FilterMode::Linear, + mipmap_filter: wgpu::FilterMode::Linear, ..Default::default() } } @@ -153,6 +154,7 @@ impl ImageSampler { wgpu::SamplerDescriptor { mag_filter: wgpu::FilterMode::Nearest, min_filter: wgpu::FilterMode::Nearest, + mipmap_filter: wgpu::FilterMode::Nearest, ..Default::default() } }