From 58add75b1e941504d1c9e6d58795b229a1d0af3d Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Thu, 8 Feb 2024 12:48:38 -0500 Subject: [PATCH] st/oxr: define convert_compare_op only when OXR_HAVE_FB_composition_layer_depth_test is enabled Part-of: --- src/xrt/state_trackers/oxr/oxr_session_frame_end.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c index d40f43939..10523e33f 100644 --- a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c +++ b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c @@ -129,6 +129,7 @@ convert_layer_flags(XrSwapchainUsageFlags xr_flags) return flags; } +#ifdef OXR_HAVE_FB_composition_layer_depth_test static enum xrt_compare_op_fb convert_compare_op(XrCompareOpFB xr_compare_op) { @@ -144,6 +145,7 @@ convert_compare_op(XrCompareOpFB xr_compare_op) default: return XRT_COMPARE_OP_MAX_ENUM_FB; } } +#endif static enum xrt_layer_eye_visibility convert_eye_visibility(XrSwapchainUsageFlags xr_visibility)