diff --git a/vulkano/src/render_pass/mod.rs b/vulkano/src/render_pass/mod.rs index ffc668d0..1d788e75 100644 --- a/vulkano/src/render_pass/mod.rs +++ b/vulkano/src/render_pass/mod.rs @@ -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`"