The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

st/oxr: don't change state to XR_SESSION_STATE_SYNCHRONIZED twice

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2530>

Simon Zeni 6f1d5318 accfc74b

+1 -1
+1 -1
src/xrt/state_trackers/oxr/oxr_session.c
··· 372 372 if (sess->state == XR_SESSION_STATE_VISIBLE) { 373 373 oxr_session_change_state(log, sess, XR_SESSION_STATE_SYNCHRONIZED, 0); 374 374 } 375 - if (!sess->has_ended_once) { 375 + if (!sess->has_ended_once && sess->state != XR_SESSION_STATE_SYNCHRONIZED) { 376 376 oxr_session_change_state(log, sess, XR_SESSION_STATE_SYNCHRONIZED, 0); 377 377 // Fake the synchronization. 378 378 sess->has_ended_once = true;