diff options
author | Bastiaan Olij <mux213@gmail.com> | 2022-12-06 21:09:57 +1100 |
---|---|---|
committer | Bastiaan Olij <mux213@gmail.com> | 2022-12-06 21:30:55 +1100 |
commit | a35d792e658aa9090b497a01d34a72509a1858bf (patch) | |
tree | b8fc25420cedfb9dc678ecdc3ea99035b2bee105 /modules | |
parent | deb760fb1b607039a0094bce1c7c1d1145b877e1 (diff) |
Fix typo that resulted in left eye depth buffer being submitted for the right eye
Diffstat (limited to 'modules')
-rw-r--r-- | modules/openxr/openxr_api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |