mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-26 00:33:51 +00:00
Ensure wait_for_fences is never called on 0 fences
This commit is contained in:
parent
a1a1467d15
commit
4ad3d418c2
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user