From 6ecd1c81e40cec8be41243189066b1697016feaf Mon Sep 17 00:00:00 2001 From: Patrick Wuttke Date: Wed, 10 Jul 2024 21:02:17 +0200 Subject: [PATCH] Temporary fix for crash in c_present() due to c_acquireImage() not working. --- source/swapchain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/swapchain.cpp b/source/swapchain.cpp index f9f9bce..afd6c29 100644 --- a/source/swapchain.cpp +++ b/source/swapchain.cpp @@ -135,7 +135,9 @@ mijin::Task<> Swapchain::c_present(const PresentArgs& args) mCurrentSemaphoreIdx = (mCurrentSemaphoreIdx + 1) % static_cast(mImageAvailableSemaphores.size()); // logMsg("frame: {}, semaphore: {}", mCurrentFrameIdx, mCurrentSemaphoreIdx); if (result == vk::Result::eSuccess) { - co_await c_acquireImage(); + // TODO: why doesn't this work? + // co_await c_acquireImage(); + acquireImage(); } else { recreate();