diff --git a/src/render/renderer/renderer.rs b/src/render/renderer/renderer.rs index 8ae98a2..b170676 100644 --- a/src/render/renderer/renderer.rs +++ b/src/render/renderer/renderer.rs @@ -107,11 +107,10 @@ impl Renderer { if let Some(state) = self.state.as_mut() { state.render(&view, &mut encoder)?; + self.queue.submit(iter::once(encoder.finish())); + output.present(); } - self.queue.submit(iter::once(encoder.finish())); - output.present(); - Ok(()) }