Last active
February 10, 2026 09:41
-
-
Save LuisMayo/795ad9ffb9609d52f5f6c5642ac7c14b to your computer and use it in GitHub Desktop.
WiVrn/Monado patch for Metro Awakening VR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 52bd75e1a9ea0c9b1b38d1261406d9aeb884b842 Mon Sep 17 00:00:00 2001 | |
| From: Luis Mayo <git-am@invalid> | |
| Date: Mon, 9 Feb 2026 19:26:35 +0100 | |
| Subject: [PATCH] fix: metroVR | |
| --- | |
| src/xrt/state_trackers/oxr/oxr_api_space.c | 2 +- | |
| src/xrt/state_trackers/oxr/oxr_api_swapchain.c | 3 +-- | |
| 2 files changed, 2 insertions(+), 3 deletions(-) | |
| diff --git a/src/xrt/state_trackers/oxr/oxr_api_space.c b/src/xrt/state_trackers/oxr/oxr_api_space.c | |
| index 8526b6644..896507685 100644 | |
| --- a/src/xrt/state_trackers/oxr/oxr_api_space.c | |
| +++ b/src/xrt/state_trackers/oxr/oxr_api_space.c | |
| @@ -232,7 +232,7 @@ oxr_xrLocateSpace(XrSpace space, XrSpace baseSpace, XrTime time, XrSpaceLocation | |
| OXR_VERIFY_SPACE_NOT_NULL(&log, baseSpace, baseSpc); | |
| OXR_VERIFY_ARG_TYPE_AND_NOT_NULL(&log, location, XR_TYPE_SPACE_LOCATION); | |
| - if (time <= (XrTime)0) { | |
| + if (time < (XrTime)0) { | |
| return oxr_error(&log, XR_ERROR_TIME_INVALID, "(time == %" PRIi64 ") is not a valid time.", time); | |
| } | |
| diff --git a/src/xrt/state_trackers/oxr/oxr_api_swapchain.c b/src/xrt/state_trackers/oxr/oxr_api_swapchain.c | |
| index 5512fb43c..5215ab859 100644 | |
| --- a/src/xrt/state_trackers/oxr/oxr_api_swapchain.c | |
| +++ b/src/xrt/state_trackers/oxr/oxr_api_swapchain.c | |
| @@ -106,8 +106,7 @@ oxr_xrCreateSwapchain(XrSession session, const XrSwapchainCreateInfo *createInfo | |
| } | |
| if ((createInfo->usageFlags & ~flags) != 0) { | |
| - return oxr_error(&log, XR_ERROR_VALIDATION_FAILURE, | |
| - "(createInfo->usageFlags == 0x%04" PRIx64 ") contains invalid flags", | |
| + oxr_warn(&log, "(createInfo->usageFlags == 0x%04" PRIx64 ") contains invalid flags", | |
| createInfo->usageFlags); | |
| } | |
| -- | |
| 2.53.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment