1
0
Fork 0

[RENDERER] Remove error when no state loaded

This commit is contained in:
Florian RICHER 2022-07-12 21:08:04 +02:00
parent ed6ccc29bf
commit df92b1b884

View file

@ -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(())
}