Skip to content

Commit

Permalink
Respect mipmap_filter when create ImageDescriptor with linear()/neare…
Browse files Browse the repository at this point in the history
…st()

fixes bevyengine#6348
  • Loading branch information
jkb0o committed Oct 23, 2022
1 parent 7989cb2 commit 1e968c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_render/src/texture/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand All @@ -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()
}
}
Expand Down

0 comments on commit 1e968c4

Please sign in to comment.