mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
fix depth texture init with multisampling (#3207)
Co-authored-by: user <email@NEO.com>
This commit is contained in:
@@ -279,7 +279,7 @@ impl Painter {
|
|||||||
depth_or_array_layers: 1,
|
depth_or_array_layers: 1,
|
||||||
},
|
},
|
||||||
mip_level_count: 1,
|
mip_level_count: 1,
|
||||||
sample_count: 1,
|
sample_count: self.msaa_samples,
|
||||||
dimension: wgpu::TextureDimension::D2,
|
dimension: wgpu::TextureDimension::D2,
|
||||||
format: depth_format,
|
format: depth_format,
|
||||||
usage: wgpu::TextureUsages::RENDER_ATTACHMENT
|
usage: wgpu::TextureUsages::RENDER_ATTACHMENT
|
||||||
|
|||||||
Reference in New Issue
Block a user