mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Handle DeviceLost in triage_submissions
This commit is contained in:
1 parent
62f1f9c438
commit
a5f72d26d3
1 file changed
+1
-1
@@ -304,7 +304,7 @@ impl<B: hal::Backend> LifetimeTracker<B> {
|
||||
let done_count = self
|
||||
.active
|
||||
.iter()
|
||||
.position(|a| unsafe { !device.get_fence_status(&a.fence).unwrap() })
|
||||
.position(|a| unsafe { !device.get_fence_status(&a.fence).unwrap_or(false) })
|
||||
.unwrap_or_else(|| self.active.len());
|
||||
let last_done = if done_count != 0 {
|
||||
self.active[done_count - 1].index
|
||||
|
||||
Reference in new issue
Block a user