[RENDERER] Remove error when no state loaded
This commit is contained in:
parent
ed6ccc29bf
commit
df92b1b884
1 changed files with 2 additions and 3 deletions
|
@ -107,11 +107,10 @@ impl Renderer {
|
||||||
|
|
||||||
if let Some(state) = self.state.as_mut() {
|
if let Some(state) = self.state.as_mut() {
|
||||||
state.render(&view, &mut encoder)?;
|
state.render(&view, &mut encoder)?;
|
||||||
|
self.queue.submit(iter::once(encoder.finish()));
|
||||||
|
output.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
self.queue.submit(iter::once(encoder.finish()));
|
|
||||||
output.present();
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue