summaryrefslogtreecommitdiff
path: root/src/gfx/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx/state.rs')
-rw-r--r--src/gfx/state.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gfx/state.rs b/src/gfx/state.rs
index 1af6653..b307d85 100644
--- a/src/gfx/state.rs
+++ b/src/gfx/state.rs
@@ -132,8 +132,7 @@ impl State {
sample_count: 1,
dimension: wgpu::TextureDimension::D2,
format: wgpu::TextureFormat::Depth32Float,
- usage: wgpu::TextureUsages::RENDER_ATTACHMENT // 3.
- | wgpu::TextureUsages::TEXTURE_BINDING,
+ usage: wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::TEXTURE_BINDING,
view_formats: &[],
};
let depth_texture = device.create_texture(&depth_descriptor);