Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions etna/source/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,6 @@ std::optional<Window::SwapchainImage> Window::acquireNext()
auto available =
currentSwapchain.imageAvailable[presentNo % currentSwapchain.imageAvailable.size()].get();

auto readyForPresent =
currentSwapchain.imageReadyForPresent[presentNo % currentSwapchain.imageReadyForPresent.size()]
.get();

// This blocks on mobile when the swapchain has no available images.
vk::AcquireNextImageInfoKHR info{
.swapchain = currentSwapchain.swapchain.get(),
Expand All @@ -121,6 +117,7 @@ std::optional<Window::SwapchainImage> Window::acquireNext()
ETNA_PANIC("Swapchain element acquisition failed! Error code {}", vk::to_string(res));

auto& element = currentSwapchain.elements[index];
auto readyForPresent = currentSwapchain.imageReadyForPresent[index].get();

// NOTE: Sometimes swapchain returns the same image twice in a row.
// This might break stuff, but I'm not sure how right now.
Expand Down