mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-26 04:11:39 +00:00
fix: weird steam deck compiling thing
This commit is contained in:
parent
c8ed0750c7
commit
9611a70ff9
1 changed files with 4 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue