From 3a4e020920c6d9e53908ca66406502c7a5cfc5f6 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 23 Apr 2019 18:53:30 -0500 Subject: [PATCH] st/oxr: Fix conformance issue in begin session. --- src/xrt/state_trackers/oxr/oxr_session.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/xrt/state_trackers/oxr/oxr_session.c b/src/xrt/state_trackers/oxr/oxr_session.c index 8a3f3c200..d362a98fe 100644 --- a/src/xrt/state_trackers/oxr/oxr_session.c +++ b/src/xrt/state_trackers/oxr/oxr_session.c @@ -69,6 +69,14 @@ 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;