mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Ensure wait_for_fences is never called on 0 fences
This commit is contained in:
@@ -177,7 +177,7 @@ impl<B: hal::Backend> PendingResources<B> {
|
||||
heaps_mutex: &Mutex<Heaps<B>>,
|
||||
force_wait: bool,
|
||||
) -> SubmissionIndex {
|
||||
if force_wait {
|
||||
if force_wait && !self.active.is_empty() {
|
||||
let status = unsafe {
|
||||
device.wait_for_fences(
|
||||
self.active.iter().map(|a| &a.fence),
|
||||
|
||||
Reference in New Issue
Block a user