From 7c8d6434d26b92178b36d1a0ef0a445231fb9218 Mon Sep 17 00:00:00 2001 From: grego <38166287+grego@users.noreply.github.com> Date: Thu, 7 Mar 2024 00:34:31 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20using=20`is=5Fsome`=20when=20checking=20f?= =?UTF-8?q?or=20`None`=20in=20render=20subpass=20valida=E2=80=A6=20(#2489)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix using `is_some` when checking for `None` in render subpass validation * Fix the second occurence --- vulkano/src/render_pass/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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`"