mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 09:09:19 +01:00
Don't wait for current submission inside of submit (#2824)
This commit is contained in:
1 parent
464b61d01c
commit
1d8bc57a86
1 file changed
+1
-1
@@ -1074,7 +1074,7 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
|
||||
|
||||
// This will schedule destruction of all resources that are no longer needed
|
||||
// by the user but used in the command stream, among other things.
|
||||
let (closures, _) = match device.maintain(hub, wgt::Maintain::Wait, &mut token) {
|
||||
let (closures, _) = match device.maintain(hub, wgt::Maintain::Poll, &mut token) {
|
||||
Ok(closures) => closures,
|
||||
Err(WaitIdleError::Device(err)) => return Err(QueueSubmitError::Queue(err)),
|
||||
Err(WaitIdleError::StuckGpu) => return Err(QueueSubmitError::StuckGpu),
|
||||
|
||||
Reference in new issue
Block a user