mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-02-27 14:23:40 +00:00
Merge #208
208: Ensure wait_for_fences is never called on 0 fences r=kvark a=rukai I don't see any reason why self.active should never be empty. This fixes the validation errors but not the slowdown of https://github.com/gfx-rs/wgpu/issues/207 I presume the slowdown was causing self.active to clear. Co-authored-by: Rukai <rubickent@gmail.com>
This commit is contained in:
commit
0642509deb
@ -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