From c4f59f0324c021891c4d1d815cfe1c4289625d73 Mon Sep 17 00:00:00 2001 From: Okko Hakola Date: Sat, 23 Mar 2024 13:20:43 +0200 Subject: [PATCH] Don't signal fence and flush in renderer, let user control it (#67) --- src/renderer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer.rs b/src/renderer.rs index 628d428..2ccd94b 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -668,10 +668,8 @@ impl Renderer { let command_buffer = command_buffer_builder.build().unwrap(); let after_main_cb = before_main_cb_future.then_execute(self.gfx_queue.clone(), command_buffer).unwrap(); - let future = - after_main_cb.then_signal_fence_and_flush().expect("Failed to signal fence and flush"); // Return our future - Box::new(future) + Box::new(after_main_cb) } pub fn draw_on_subpass_image(