From 6de6050764c55866a731853501625580822b65b9 Mon Sep 17 00:00:00 2001 From: Okko Hakola Date: Sat, 12 Nov 2022 17:10:40 +0200 Subject: [PATCH] Remove allocator from window renderer inputs (#2085) --- vulkano-util/src/renderer.rs | 3 +-- vulkano-util/src/window.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/vulkano-util/src/renderer.rs b/vulkano-util/src/renderer.rs index 328edba585..55bbfae3ac 100644 --- a/vulkano-util/src/renderer.rs +++ b/vulkano-util/src/renderer.rs @@ -66,7 +66,6 @@ impl VulkanoWindowRenderer { window: winit::window::Window, descriptor: &WindowDescriptor, swapchain_create_info_modify: fn(&mut SwapchainCreateInfo), - memory_allocator: Arc, ) -> VulkanoWindowRenderer { // Create rendering surface from window let surface = @@ -89,7 +88,7 @@ impl VulkanoWindowRenderer { compute_queue: vulkano_context.compute_queue().clone(), swapchain: swap_chain, final_views, - memory_allocator, + memory_allocator: vulkano_context.memory_allocator().clone(), additional_image_views: HashMap::default(), recreate_swapchain: false, previous_frame_end, diff --git a/vulkano-util/src/window.rs b/vulkano-util/src/window.rs index 497f63fb8a..fc014ffcb4 100644 --- a/vulkano-util/src/window.rs +++ b/vulkano-util/src/window.rs @@ -168,7 +168,6 @@ impl VulkanoWindows { winit_window, window_descriptor, swapchain_create_info_modify, - vulkano_context.memory_allocator().clone(), ), );