From 9611a70ff9435c2776a6d3e312c006d21a4d8997 Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Fri, 4 Jul 2025 19:10:32 +0200 Subject: [PATCH] fix: weird steam deck compiling thing --- lsfg-vk-gen/src/context.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lsfg-vk-gen/src/context.cpp b/lsfg-vk-gen/src/context.cpp index f7d1f82..b19e187 100644 --- a/lsfg-vk-gen/src/context.cpp +++ b/lsfg-vk-gen/src/context.cpp @@ -118,9 +118,10 @@ void Context::present(const Core::Device& device, int inSem, auto& info = this->renderInfos.at(this->frameIdx % 8); // 3. wait for completion of previous frame in this slot - for (auto& fence : info.completionFences.value_or({})) - if (!fence.wait(device, UINT64_MAX)) // should not take any time - throw vulkan_error(VK_ERROR_DEVICE_LOST, "Fence wait timed out"); + if (info.completionFences.has_value()) + for (auto& fence : *info.completionFences) + if (!fence.wait(device, UINT64_MAX)) // should not take any time + throw vulkan_error(VK_ERROR_DEVICE_LOST, "Fence wait timed out"); // 1. downsample and process input image info.inSemaphore = Core::Semaphore(device, inSem);