mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 14:24:18 +00:00
Fix using is_some
when checking for None
in render subpass valida… (#2489)
* Fix using `is_some` when checking for `None` in render subpass validation * Fix the second occurence
This commit is contained in:
parent
a4f9d9db30
commit
7c8d6434d2
@ -2764,7 +2764,7 @@ impl SubpassDescription {
|
||||
}
|
||||
|
||||
if let Some(depth_resolve_mode) = depth_resolve_mode {
|
||||
if depth_stencil_resolve_attachment.is_some() {
|
||||
if depth_stencil_resolve_attachment.is_none() {
|
||||
return Err(Box::new(ValidationError {
|
||||
problem: "`depth_resolve_mode` is `Some`, but \
|
||||
`depth_stencil_resolve_attachment` is `None`"
|
||||
@ -2793,7 +2793,7 @@ impl SubpassDescription {
|
||||
}
|
||||
|
||||
if let Some(stencil_resolve_mode) = stencil_resolve_mode {
|
||||
if depth_stencil_resolve_attachment.is_some() {
|
||||
if depth_stencil_resolve_attachment.is_none() {
|
||||
return Err(Box::new(ValidationError {
|
||||
problem: "`stencil_resolve_mode` is `Some`, but \
|
||||
`depth_stencil_resolve_attachment` is `None`"
|
||||
|
Loading…
Reference in New Issue
Block a user