mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Submit queue when maintaining and minimized
This commit is contained in:
parent
cb55676bb9
commit
9454c34cc2
@ -600,7 +600,13 @@ impl Renderer {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn maintain(&self) { self.device.poll(wgpu::Maintain::Poll) }
|
||||
pub fn maintain(&self) {
|
||||
if self.is_minimized {
|
||||
self.queue.submit(std::iter::empty());
|
||||
}
|
||||
|
||||
self.device.poll(wgpu::Maintain::Poll)
|
||||
}
|
||||
|
||||
/// Create render target views
|
||||
fn create_rt_views(
|
||||
|
Loading…
Reference in New Issue
Block a user