From 9fd7d6689d5d90679e4b0c12e463ef4e2f8bf515 Mon Sep 17 00:00:00 2001 From: Micha White Date: Sat, 4 Feb 2023 13:25:45 -0500 Subject: Have the renderer take the texture manager --- alligator_resources/src/texture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alligator_resources/src') 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 { -- cgit v1.2.3