From 36dd9d911ebe818a3adf2da82e7f3f0530291dae Mon Sep 17 00:00:00 2001 From: Fedor Logachev Date: Tue, 20 Feb 2024 22:52:27 -0600 Subject: [PATCH] fix broken example --- examples/post_processing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/post_processing.rs b/examples/post_processing.rs index 980806b8..2795ad3c 100644 --- a/examples/post_processing.rs +++ b/examples/post_processing.rs @@ -31,7 +31,7 @@ impl Stage { ..Default::default() }); - let offscreen_pass = ctx.new_render_pass(Some(color_img), Some(depth_img)); + let offscreen_pass = ctx.new_render_pass(color_img, Some(depth_img)); #[rustfmt::skip] let vertices: &[f32] = &[ @@ -204,7 +204,7 @@ impl EventHandler for Stage { ..Default::default() }); - let offscreen_pass = self.ctx.new_render_pass(Some(color_img), Some(depth_img)); + let offscreen_pass = self.ctx.new_render_pass(color_img, Some(depth_img)); self.ctx.delete_render_pass(self.offscreen_pass); self.offscreen_pass = offscreen_pass;