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:
grego 2024-03-07 00:34:31 +01:00 committed by GitHub
parent a4f9d9db30
commit 7c8d6434d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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`"