OpenXR attempt to fix flickering

This commit is contained in:
Lubos 2022-04-30 22:57:48 +02:00
parent 0eb1d43b4a
commit f735535dce

View file

@ -176,7 +176,7 @@ void ovrFramebuffer_Acquire(ovrFramebuffer* frameBuffer) {
waitInfo.timeout = 1000000000; /* timeout in nanoseconds */ waitInfo.timeout = 1000000000; /* timeout in nanoseconds */
XrResult res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo); XrResult res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo);
int i = 0; int i = 0;
while (res == XR_TIMEOUT_EXPIRED) { while (res != XR_SUCCESS) {
res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo); res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo);
i++; i++;
ALOGV( ALOGV(