mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-16 03:45:24 +00:00
st/oxr: define convert_compare_op only when OXR_HAVE_FB_composition_layer_depth_test is enabled
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140>
This commit is contained in:
parent
7bbb6d6864
commit
58add75b1e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue