mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-23 16:01:04 +01:00
Fixed typo in texture size check
This commit is contained in:
1 parent
a56f9949ec
commit
1fecbe18ed
1 file changed
+1
-1
@@ -294,7 +294,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
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(());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user