summaryrefslogtreecommitdiff
path: root/alligator_render/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alligator_render/src/renderer.rs')
-rw-r--r--alligator_render/src/renderer.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/alligator_render/src/renderer.rs b/alligator_render/src/renderer.rs
index f448119..fdd8c34 100644
--- a/alligator_render/src/renderer.rs
+++ b/alligator_render/src/renderer.rs
@@ -1,5 +1,5 @@
-use std::convert::TryInto;
use std::num::NonZeroU32;
+use std::{convert::TryInto, sync::Arc};
use crate::{
vertex::SQUARE, Camera, Instance, InstanceBuffer, RenderWindowConfig, TextureAtlas, Vertex,
@@ -150,7 +150,7 @@ impl Renderer {
// TODO this function needs to be smaller
pub fn new(
config: &RenderWindowConfig,
- textures: TextureManager,
+ textures: Arc<TextureManager>,
) -> Result<Self, NewRendererError> {
// build the window
let event_loop = EventLoop::new();