From e337741969160603f06a7f2b30cda375eeef99fb Mon Sep 17 00:00:00 2001 From: Micha White Date: Thu, 20 Oct 2022 20:16:42 -0400 Subject: More profiling and error logging --- src/texture.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/texture.rs') diff --git a/src/texture.rs b/src/texture.rs index 293a202..e343508 100644 --- a/src/texture.rs +++ b/src/texture.rs @@ -261,7 +261,9 @@ impl TextureAtlas { let atlas_size = extent_3d(self.width, self.height); // put the packed texture into the base image - drop(self.fill_image()); + if let Err(e) = self.fill_image() { + log::error!("{}", e); + } // copy that to the gpu queue.write_texture( -- cgit v1.2.3