Skip to content

st/oxr: Return correct value

According to the OpenXR specs, it should return XR_TIMEOUT_EXPIRED and the image index should not be changed when the timeout expires.

If the timeout expires without the image becoming available for writing, XR_TIMEOUT_EXPIRED must be returned. If xrWaitSwapchainImage returns XR_TIMEOUT_EXPIRED, the next call to xrWaitSwapchainImage will wait on the same image index again until the function succeeds with XR_SUCCESS. Note that this is not an error code; XR_SUCCEEDED(XR_TIMEOUT_EXPIRED) is true.

Edited by Weijiew Wang

Merge request reports