From 2e9cdf2bd1749c714c1b5fcc2005843008caf9b5 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Mon, 24 Apr 2023 10:17:28 -0400 Subject: [PATCH] Set max mipmapping level --- src/app/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/data.rs b/src/app/data.rs index 88e3b18..7b6c594 100644 --- a/src/app/data.rs +++ b/src/app/data.rs @@ -1136,7 +1136,7 @@ impl AppData { .mipmap_mode(vk::SamplerMipmapMode::LINEAR) .mip_lod_bias(0.0) .min_lod(0.0) - .max_lod(0.0); + .max_lod(self.mip_levels as f32); self.texture_sampler = device.create_sampler(&info, None)?;