From 1fecbe18edb7dc061e4793d5b9ec22261748aeb7 Mon Sep 17 00:00:00 2001 From: Leon Scherer Date: Fri, 25 Sep 2020 14:21:38 +0200 Subject: [PATCH] Fixed typo in texture size check --- wgpu-core/src/device/queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-core/src/device/queue.rs b/wgpu-core/src/device/queue.rs index 3e682f9f23..727982a741 100644 --- a/wgpu-core/src/device/queue.rs +++ b/wgpu-core/src/device/queue.rs @@ -294,7 +294,7 @@ impl Global { None => {} } - if size.width == 0 || size.height == 0 || size.width == 0 { + if size.width == 0 || size.height == 0 || size.depth == 0 { tracing::trace!("Ignoring write_texture of size 0"); return Ok(()); }