diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 3e8fb0b..819ce40 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ use crate::graphics::window_dressing::{ }; use crate::linear_algebra::{ Vec3, Mat4, Transformation }; use crate::files::obj::load_obj; +use crate::files::png::load_png; use crate::shader_data::UniformBlock; use std::cell::RefCell; @@ -67,7 +68,7 @@ impl Surreality { let (permanent, for_reinit, enable_anisotropy, enable_swapchain) = Permanent::new(event_loop)?; - let (texture, mip_count) = Texture::new(&permanent)?; + let (texture, mip_count) = load_png(&permanent)?; if enable_swapchain.0 { let window_dressing = WindowDressing::new(&permanent, &for_reinit, |