From e2a6f0501efa390b50d5da2d20be505bb3cccc31 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Fri, 1 Dec 2023 15:31:09 +0100 Subject: [PATCH] st/oxr: Fix swapchain format list assert --- src/xrt/state_trackers/oxr/oxr_swapchain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/oxr/oxr_swapchain.c b/src/xrt/state_trackers/oxr/oxr_swapchain.c index ceecc972c..86742934d 100644 --- a/src/xrt/state_trackers/oxr/oxr_swapchain.c +++ b/src/xrt/state_trackers/oxr/oxr_swapchain.c @@ -298,7 +298,7 @@ oxr_swapchain_common_create(struct oxr_logger *log, if (format_list) { // Check in oxr_api_swapchain.c verification. - assert((createInfo->usageFlags & XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT) == 0); + assert((createInfo->usageFlags & XR_SWAPCHAIN_USAGE_MUTABLE_FORMAT_BIT) != 0); if (format_list->viewFormatCount > ARRAY_SIZE(info.formats)) { /* Hardcoded limit of 8 formats */