Skip to content

Commit

Permalink
Fix checks from vulkano-rs#2009 (vulkano-rs#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinJ235 authored Oct 6, 2022
1 parent 2992f0d commit f99c679
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 3 additions & 1 deletion vulkano/src/sync/future/fence_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ where
true,
) {
Ok(_) => (),
Err(AccessCheckError::Unknown) => return Err(AccessError::SwapchainImageNotAcquired.into()),
Err(AccessCheckError::Unknown) => {
return Err(AccessError::SwapchainImageNotAcquired.into())
}
Err(AccessCheckError::Denied(e)) => return Err(e.into()),
}
}
Expand Down
4 changes: 1 addition & 3 deletions vulkano/src/sync/future/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ where
Err(AccessCheckError::Denied(e1))
} // TODO: which one?
(Ok(_), Err(AccessCheckError::Denied(_)))
| (Err(AccessCheckError::Denied(_)), Ok(_)) => {
panic!("Contradictory information between two futures")
}
| (Err(AccessCheckError::Denied(_)), Ok(_)) => Ok(()),
(Ok(_), Ok(_)) => Ok(()), // TODO: Double Acquired?
}
}
Expand Down

0 comments on commit f99c679

Please sign in to comment.