diff --git a/src/physics_worker.rs b/src/physics_worker.rs index 635474d..92e7d49 100644 --- a/src/physics_worker.rs +++ b/src/physics_worker.rs @@ -105,7 +105,7 @@ pub enum InputInstruction { } } if render{ - graphics_worker.send(TimedInstruction{time:ins.time,instruction:crate::graphics_worker::GraphicsInstruction::Render}); + graphics_worker.send(crate::graphics_worker::GraphicsInstruction::Render(physics.output(),ins.time)); } }) } \ No newline at end of file