The open source OpenXR runtime
0
fork

Configure Feed

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

st/oxr: no-op on oxr_session_change_state with same state

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

Simon Zeni accfc74b 3af6b85d

+7
+7
src/xrt/state_trackers/oxr/oxr_session.c
··· 164 164 void 165 165 oxr_session_change_state(struct oxr_logger *log, struct oxr_session *sess, XrSessionState state, XrTime time) 166 166 { 167 + if (sess->state == state) { 168 + oxr_warn(log, 169 + "Session state changed to the same state (%s), not sending XrEventDataSessionStateChanged", 170 + to_string(state)); 171 + return; 172 + } 173 + 167 174 oxr_event_push_XrEventDataSessionStateChanged(log, sess, state, time); 168 175 sess->state = state; 169 176 }