summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml6
-rw-r--r--src/texture.rs4
2 files changed, 7 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c07a785..01c5738 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,13 +16,15 @@ cgmath = "0.18"
image = "0.24"
texture_packer = "0.24"
profiling = "1"
-tracy-client = "0.14"
+tracy-client = { version = "0.14", optional = true }
+dhat = "0.3"
[lib]
crate-type = ["cdylib", "lib"]
[features]
-profile-with-tracy = ["profiling/profile-with-tracy"]
+dhat = []
+profile-with-tracy = ["tracy-client", "profiling/profile-with-tracy"]
[[example]]
name = "black"
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(