···18491849 XrSessionState state;
1850185018511851 /*!
18521852+ * This is set in xrBeginSession and is the primaryViewConfiguration
18531853+ * argument, this is then used in xrEndFrame to know which view
18541854+ * configuration the application is submitting it's frame in.
18551855+ */
18561856+ XrViewConfigurationType current_view_config_type;
18571857+18581858+ /*!
18521859 * There is a extra state between xrBeginSession has been called and
18531860 * the first xrEndFrame has been called. These are to track this.
18541861 */
+9
src/xrt/state_trackers/oxr/oxr_session.c
···347347 "Frame sync object refused to let us begin session, probably already running");
348348 }
349349350350+ // Set the current view configuration type, used in xrEndFrame.
351351+ sess->current_view_config_type = beginInfo->primaryViewConfigurationType;
352352+350353 return oxr_session_success_result(sess);
351354}
352355···412415 return oxr_error(log, ret, "Frame sync object refused to let us end session, probably not running");
413416 }
414417 sess->has_ended_once = false;
418418+419419+ // Unset the current view configuration type here.
420420+ sess->current_view_config_type = XR_VIEW_CONFIGURATION_TYPE_MAX_ENUM;
415421416422 return oxr_session_success_result(sess);
417423}
···10711077 // Action system hashmaps.
10721078 u_hashmap_int_create(&sess->act_sets_attachments_by_key);
10731079 u_hashmap_int_create(&sess->act_attachments_by_key);
10801080+10811081+ // This is set to something valid in begin session, used in xrEndFrame.
10821082+ sess->current_view_config_type = XR_VIEW_CONFIGURATION_TYPE_MAX_ENUM;
1074108310751084 // Done with basic init, set out variable.
10761085 *out_session = sess;