Merge pull request #69648 from BastiaanOlij/fix_openxr_depthbuffer_submission

Fix typo in OpenXR depth buffer submission
This commit is contained in:
Rémi Verschelde 2022-12-06 12:25:18 +01:00
commit 49e27ce64f
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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;