Commit 3e340607 authored by Ryan Pavlik's avatar Ryan Pavlik

st/oxr: Ignore view config type in monado headless mode.

parent 225bac0c
Pipeline #56598 passed with stages
in 2 minutes and 7 seconds
......@@ -86,18 +86,19 @@ oxr_session_begin(struct oxr_logger *log,
return oxr_error(log, XR_ERROR_SESSION_RUNNING,
" session is already running");
}
XrViewConfigurationType view_type =
beginInfo->primaryViewConfigurationType;
if (view_type != sess->sys->view_config_type) {
/*! @todo we only support a single view config type per system
* right now */
return oxr_error(log, XR_ERROR_SESSION_RUNNING,
" view configuration type not supported");
}
struct xrt_compositor *xc = sess->compositor;
if (xc != NULL) {
XrViewConfigurationType view_type =
beginInfo->primaryViewConfigurationType;
if (view_type != sess->sys->view_config_type) {
/*! @todo we only support a single view config type per
* system right now */
return oxr_error(
log, XR_ERROR_VIEW_CONFIGURATION_TYPE_UNSUPPORTED,
" view configuration type not supported");
}
xc->begin_session(xc, (enum xrt_view_type)beginInfo
->primaryViewConfigurationType);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment