Temporary fix for crash in c_present() due to c_acquireImage() not working.
This commit is contained in:
parent
cf0d43d950
commit
6ecd1c81e4
@ -135,7 +135,9 @@ mijin::Task<> Swapchain::c_present(const PresentArgs& args)
|
||||
mCurrentSemaphoreIdx = (mCurrentSemaphoreIdx + 1) % static_cast<int>(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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user