From a35d792e658aa9090b497a01d34a72509a1858bf Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Tue, 6 Dec 2022 21:09:57 +1100 Subject: Fix typo that resulted in left eye depth buffer being submitted for the right eye --- modules/openxr/openxr_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/openxr/openxr_api.cpp b/modules/openxr/openxr_api.cpp index 59d3865acd..71e1d9c351 100644 --- a/modules/openxr/openxr_api.cpp +++ b/modules/openxr/openxr_api.cpp @@ -796,7 +796,7 @@ bool OpenXRAPI::create_swapchains() { depth_views[i].type = XR_TYPE_COMPOSITION_LAYER_DEPTH_INFO_KHR; depth_views[i].next = nullptr; depth_views[i].subImage.swapchain = swapchains[OPENXR_SWAPCHAIN_DEPTH].swapchain; - depth_views[i].subImage.imageArrayIndex = 0; + depth_views[i].subImage.imageArrayIndex = i; depth_views[i].subImage.imageRect.offset.x = 0; depth_views[i].subImage.imageRect.offset.y = 0; depth_views[i].subImage.imageRect.extent.width = recommended_size.width; -- cgit v1.2.3