From f735535dcef2675678e1731ec67f4f5b7537bd49 Mon Sep 17 00:00:00 2001 From: Lubos Date: Sat, 30 Apr 2022 22:57:48 +0200 Subject: [PATCH] OpenXR attempt to fix flickering --- android/app/src/main/cpp/code/vr/vr_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/app/src/main/cpp/code/vr/vr_types.c b/android/app/src/main/cpp/code/vr/vr_types.c index 7cfbaada..11e3e273 100644 --- a/android/app/src/main/cpp/code/vr/vr_types.c +++ b/android/app/src/main/cpp/code/vr/vr_types.c @@ -176,7 +176,7 @@ void ovrFramebuffer_Acquire(ovrFramebuffer* frameBuffer) { waitInfo.timeout = 1000000000; /* timeout in nanoseconds */ XrResult res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo); int i = 0; - while (res == XR_TIMEOUT_EXPIRED) { + while (res != XR_SUCCESS) { res = xrWaitSwapchainImage(frameBuffer->ColorSwapChain.Handle, &waitInfo); i++; ALOGV(