st/oxr: fix bug when XR_KHR_composition_layer_depth is disabled

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2304>
This commit is contained in:
Korcan Hussein 2024-08-08 11:20:27 +01:00 committed by Korcan Hussein
parent ea262a539c
commit c29fea16d8

View file

@ -1293,12 +1293,12 @@ submit_projection_layer(struct oxr_session *sess,
uint64_t xrt_timestamp)
{
struct oxr_space *spc = XRT_CAST_OXR_HANDLE_TO_PTR(struct oxr_space *, proj->space);
struct oxr_swapchain *d_scs[XRT_MAX_VIEWS];
struct oxr_swapchain *scs[XRT_MAX_VIEWS];
struct xrt_pose *pose_ptr;
struct xrt_pose pose[XRT_MAX_VIEWS];
struct xrt_swapchain *swapchains[XRT_MAX_VIEWS];
struct xrt_swapchain *d_swapchains[XRT_MAX_VIEWS];
struct oxr_swapchain *d_scs[XRT_MAX_VIEWS] = {0};
struct oxr_swapchain *scs[XRT_MAX_VIEWS] = {0};
struct xrt_pose *pose_ptr = NULL;
struct xrt_pose pose[XRT_MAX_VIEWS] = {0};
struct xrt_swapchain *swapchains[XRT_MAX_VIEWS] = {0};
struct xrt_swapchain *d_swapchains[XRT_MAX_VIEWS] = {0};
enum xrt_layer_composition_flags flags = convert_layer_flags(proj->layerFlags);