diff --git a/wgpu-core/src/device/resource.rs b/wgpu-core/src/device/resource.rs index 1cd8ef0fe..03b183e08 100644 --- a/wgpu-core/src/device/resource.rs +++ b/wgpu-core/src/device/resource.rs @@ -457,13 +457,13 @@ impl Device { // If necessary, wait for that submission to complete. if maintain.is_wait() { + log::trace!("Device::maintain: waiting for submission index {submission_index}"); unsafe { self.raw() .wait(fence.as_ref(), submission_index, CLEANUP_WAIT_MS) } .map_err(|e| self.handle_hal_error(e))?; } - log::trace!("Device::maintain: waiting for submission index {submission_index}"); let mut life_tracker = self.lock_life(); let submission_closures =