st/oxr: xrPollEvent should not return XR_SESSION_LOSS_PENDING

This commit is contained in:
Jarvis Huang 2023-03-16 17:45:37 +08:00 committed by Jakob Bornecrantz
parent 7cd1d4886f
commit c560ff5592

View file

@ -157,7 +157,7 @@ oxr_event_push_XrEventDataSessionStateChanged(struct oxr_logger *log,
changed->state = state;
changed->time = time;
event->result = state == XR_SESSION_STATE_LOSS_PENDING ? XR_SESSION_LOSS_PENDING : XR_SUCCESS;
event->result = XR_SUCCESS;
lock(inst);
push(inst, event);