Skip to content

Commit b8e6c2c

Browse files
committed
ISwapchain Blocking Version fix
1 parent cc43acf commit b8e6c2c

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

include/nbl/video/ISwapchain.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,7 @@ class NBL_API ISwapchain : public core::IReferenceCounted, public IBackendObject
6161
// 100% blocking version, guaranteed to **not** return TIMEOUT or NOT_READY
6262
virtual E_ACQUIRE_IMAGE_RESULT acquireNextImage(IGPUSemaphore* semaphore, IGPUFence* fence, uint32_t* out_imgIx)
6363
{
64-
E_ACQUIRE_IMAGE_RESULT result=EAIR_NOT_READY;
65-
while (result==EAIR_NOT_READY||result==EAIR_TIMEOUT)
66-
{
67-
result = acquireNextImage(999999999ull,semaphore,fence,out_imgIx);
68-
if (result==EAIR_ERROR)
69-
{
70-
assert(false);
71-
break;
72-
}
73-
}
74-
return result;
64+
return acquireNextImage(std::numeric_limits<uint64_t>::max(),semaphore,fence,out_imgIx);
7565
}
7666

7767
inline ISwapchain(core::smart_refctd_ptr<const ILogicalDevice>&& dev, SCreationParams&& params, images_array_t&& images)

0 commit comments

Comments
 (0)