Skip to content

Commit

Permalink
Respect minImageCount when creating the swapchain (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
aedm authored Jun 5, 2023
1 parent faac11b commit 21296f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bitang/src/render/vulkan_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ impl VulkanWindow {

windows.create_window(&event_loop, &vulkano_context, &window_descriptor, |ci| {
ci.image_format = Some(SCREEN_COLOR_FORMAT);
ci.min_image_count = 3;
ci.min_image_count = ci.min_image_count.max(3);
});

let renderer = windows
Expand Down

0 comments on commit 21296f7

Please sign in to comment.