summary refs log tree commit diff
path: root/src/graphics/model.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics/model.rs')
-rw-r--r--src/graphics/model.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/graphics/model.rs b/src/graphics/model.rs
index 01e8731..7b912b6 100644
--- a/src/graphics/model.rs
+++ b/src/graphics/model.rs
@@ -3,7 +3,6 @@ use crate::error::*;
 use crate::graphics::permanent::PermanentGraphicsState;
 use crate::graphics::render_state::RenderState;
 use crate::graphics::util::init_buffer;
-use crate::graphics::window_dressing::WindowDressing;
 use crate::linear_algebra::{ Vec3, Vec4, Transformation };
 use crate::shader_data::{ Vertex, VertexPushBlock };
 
@@ -26,14 +25,13 @@ pub struct Model {
 
 impl Model {
   pub fn new(vertices: Vec<Vertex<f32>>, indices: Vec<u32>,
-             permanent: &PermanentGraphicsState,
-             window_dressing: &WindowDressing)
+             permanent: &PermanentGraphicsState)
       -> Result<Self>
   {
     let device = &permanent.device;
     let instance = &permanent.instance;
     let graphics_queue = &permanent.graphics_queue;
-    let transient_command_pool = &window_dressing.transient_command_pool;
+    let transient_command_pool = &permanent.transient_command_pool;
 
     let index_count = indices.len();