st/oxr: Use correct enum type when converting from eye visibility NFC

This commit is contained in:
Jakob Bornecrantz 2020-06-13 13:57:59 +01:00
parent 172ff0f434
commit e4a4a5e7b2

View file

@ -748,7 +748,7 @@ convert_layer_flags(XrSwapchainUsageFlags xr_flags)
static enum xrt_layer_eye_visibility static enum xrt_layer_eye_visibility
convert_eye_visibility(XrSwapchainUsageFlags xr_visibility) convert_eye_visibility(XrSwapchainUsageFlags xr_visibility)
{ {
enum xrt_layer_composition_flags visibility = 0; enum xrt_layer_eye_visibility visibility = 0;
if (xr_visibility == XR_EYE_VISIBILITY_BOTH) { if (xr_visibility == XR_EYE_VISIBILITY_BOTH) {
visibility = XRT_LAYER_EYE_VISIBILITY_BOTH; visibility = XRT_LAYER_EYE_VISIBILITY_BOTH;