`xrEndSession` doesn't always stop the session
Citing the OpenXR spec (emphasis mine):
If an error is returned from
xrBeginSession
, the session remains in its current running or not running state. CallingxrEndSession
always transitions a session to the not running state, regardless of any errors returned.
Right now if I receive XR_ERROR_SESSION_NOT_STOPPING
from xrEndSession
, the next xrBeginSession
call will return XR_ERROR_SESSION_RUNNING
, indicating xrEndSession
did not stop the session.