mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
poll device to cleanup resources
This commit is contained in:
parent
a9229e3625
commit
cb55676bb9
@ -80,6 +80,7 @@ impl GlobalState {
|
||||
pub fn maintain(&mut self, dt: std::time::Duration) {
|
||||
span!(_guard, "maintain", "GlobalState::maintain");
|
||||
self.audio.maintain(dt);
|
||||
self.window.renderer().maintain()
|
||||
}
|
||||
|
||||
#[cfg(feature = "singleplayer")]
|
||||
|
@ -600,6 +600,8 @@ impl Renderer {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn maintain(&self) { self.device.poll(wgpu::Maintain::Poll) }
|
||||
|
||||
/// Create render target views
|
||||
fn create_rt_views(
|
||||
device: &wgpu::Device,
|
||||
|
Loading…
Reference in New Issue
Block a user