From 3db20b1cdc1bcd37957f116edfcf97ab0feeeac7 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 6 Aug 2023 09:30:42 +0200 Subject: [PATCH] fix depth texture init with multisampling --- crates/egui-wgpu/src/winit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui-wgpu/src/winit.rs b/crates/egui-wgpu/src/winit.rs index 7b6a9b180b5..171d5f08eff 100644 --- a/crates/egui-wgpu/src/winit.rs +++ b/crates/egui-wgpu/src/winit.rs @@ -279,7 +279,7 @@ impl Painter { depth_or_array_layers: 1, }, mip_level_count: 1, - sample_count: 1, + sample_count: self.msaa_samples, dimension: wgpu::TextureDimension::D2, format: depth_format, usage: wgpu::TextureUsages::RENDER_ATTACHMENT