From 473c016006f5b7711e64b4f846f3f90f49f71596 Mon Sep 17 00:00:00 2001 From: David Chavez Date: Tue, 18 Jul 2023 14:30:38 +0200 Subject: [PATCH] chore(fix): example --- examples/triangle/src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/triangle/src/main.rs b/examples/triangle/src/main.rs index 19a8b5d..143c739 100644 --- a/examples/triangle/src/main.rs +++ b/examples/triangle/src/main.rs @@ -348,6 +348,9 @@ impl fast3d_example::framework::Example for Example<'static> { // Draw the RCP output self.renderer.draw(&mut rpass); + // Clear the draw calls + self.render_data.clear_draw_calls(); + drop(rpass); queue.submit(Some(encoder.finish())); }