mirror of
https://github.com/lbgos/rift-s-linux.git
synced 2026-10-29 04:02:05 +01:00
st/oxr: Fix one place that was checking for session running in a weird way.
Techincally "session running" depends entirely on what calls have been made, and not on the session state events that were polled. Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2344>
This commit is contained in:
1 parent
3b232b745f
commit
ee2ddead2e
1 file changed
+1
-1
@@ -285,7 +285,7 @@ oxr_session_end(struct oxr_logger *log, struct oxr_session *sess)
|
||||
* If the session is not running when the application calls xrEndSession, the runtime must return
|
||||
* error XR_ERROR_SESSION_NOT_RUNNING
|
||||
*/
|
||||
if (sess->state == XR_SESSION_STATE_IDLE || sess->state == XR_SESSION_STATE_READY) {
|
||||
if (!oxr_frame_sync_is_session_running(&sess->frame_sync)) {
|
||||
return oxr_error(log, XR_ERROR_SESSION_NOT_RUNNING, "Session is not running");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user