summaryrefslogtreecommitdiff
path: root/alligator_resources
diff options
context:
space:
mode:
Diffstat (limited to 'alligator_resources')
-rw-r--r--alligator_resources/Cargo.toml2
-rw-r--r--alligator_resources/src/texture.rs2
2 files changed, 3 insertions, 1 deletions
diff --git a/alligator_resources/Cargo.toml b/alligator_resources/Cargo.toml
index 3ccb084..d5d8276 100644
--- a/alligator_resources/Cargo.toml
+++ b/alligator_resources/Cargo.toml
@@ -13,3 +13,5 @@ texture_packer = { git = "https://github.com/botahamec/piston_texture_packer", b
profiling = "1"
bytemuck = { version = "1", features = ["extern_crate_alloc"] }
parking_lot = "0.12"
+log = "0.4"
+dashmap = "5"
diff --git a/alligator_resources/src/texture.rs b/alligator_resources/src/texture.rs
index 90bc662..e5b4147 100644
--- a/alligator_resources/src/texture.rs
+++ b/alligator_resources/src/texture.rs
@@ -364,7 +364,7 @@ impl Default for TextureManagerConfig {
impl TextureManager {
/// Create a new `TextureManager` with the given config options.
#[must_use]
- pub fn new(config: TextureManagerConfig) -> Self {
+ pub fn new(config: &TextureManagerConfig) -> Self {
let textures = DashMap::with_capacity(config.initial_capacity);
Self {