Skip to content

Commit

Permalink
fix broken example
Browse files Browse the repository at this point in the history
  • Loading branch information
not-fl3 committed Feb 21, 2024
1 parent a032eee commit 36dd9d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/post_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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] = &[
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 36dd9d9

Please sign in to comment.