Skip to content

Commit

Permalink
Remove allocator from window renderer inputs (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakolao authored Nov 12, 2022
1 parent 7e09f59 commit 6de6050
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions vulkano-util/src/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ impl VulkanoWindowRenderer {
window: winit::window::Window,
descriptor: &WindowDescriptor,
swapchain_create_info_modify: fn(&mut SwapchainCreateInfo),
memory_allocator: Arc<StandardMemoryAllocator>,
) -> VulkanoWindowRenderer {
// Create rendering surface from window
let surface =
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion vulkano-util/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ impl VulkanoWindows {
winit_window,
window_descriptor,
swapchain_create_info_modify,
vulkano_context.memory_allocator().clone(),
),
);

Expand Down

0 comments on commit 6de6050

Please # to comment.