diff --git a/experiments/2024-10-30/src/app.rs b/experiments/2024-10-30/src/app.rs index 44517160e..1e2298651 100644 --- a/experiments/2024-10-30/src/app.rs +++ b/experiments/2024-10-30/src/app.rs @@ -106,10 +106,8 @@ impl ApplicationHandler for App { window.request_redraw(); } WindowEvent::RedrawRequested => { - if let Some(selected) = self.ops.selected() { - if let Err(err) = renderer.render(selected, &self.ops) { - eprintln!("Render error: {err}"); - } + if let Err(err) = renderer.render(&self.ops) { + eprintln!("Render error: {err}"); } } _ => {} diff --git a/experiments/2024-10-30/src/render/renderer.rs b/experiments/2024-10-30/src/render/renderer.rs index 8820a1fc8..6f0ba3af2 100644 --- a/experiments/2024-10-30/src/render/renderer.rs +++ b/experiments/2024-10-30/src/render/renderer.rs @@ -3,7 +3,7 @@ use std::sync::Arc; use anyhow::anyhow; use winit::window::Window; -use crate::geometry::{Operation, OpsLog}; +use crate::geometry::OpsLog; use super::{geometry::Geometry, pipelines::Pipelines, text::TextRenderer}; @@ -87,11 +87,7 @@ impl Renderer { }) } - pub fn render( - &mut self, - _: &dyn Operation, - all_operations: &OpsLog, - ) -> anyhow::Result<()> { + pub fn render(&mut self, all_operations: &OpsLog) -> anyhow::Result<()> { let Some(selected_operation) = all_operations.selected() else { return Ok(()); };