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())); }