mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
Ensure wait_for_fences is never called on 0 fences
This commit is contained in:
1 parent
a1a1467d15
commit
4ad3d418c2
1 file changed
+1
-1
@@ -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