| 212 | } |
| 213 | |
| 214 | ovrResult ovrHmdStruct::DestroySession() |
| 215 | { |
| 216 | if (!Session) |
| 217 | return ovrError_InvalidOperation; |
| 218 | |
| 219 | if (Input) |
| 220 | Input->AttachSession(XR_NULL_HANDLE); |
| 221 | |
| 222 | CHK_XR(xrDestroySession(Session)); |
| 223 | Session = XR_NULL_HANDLE; |
| 224 | ViewSpace = XR_NULL_HANDLE; |
| 225 | for (uint32_t i = 0; i < ovrTrackingOrigin_Count; i++) |
| 226 | { |
| 227 | OriginSpaces[i] = XR_NULL_HANDLE; |
| 228 | TrackingSpaces[i] = XR_NULL_HANDLE; |
| 229 | } |
| 230 | return ovrSuccess; |
| 231 | } |
| 232 | |
| 233 | ovrResult ovrHmdStruct::LocateViews(XrView out_Views[ovrEye_Count], XrViewStateFlags* out_Flags) const |
| 234 | { |
no test coverage detected