MCPcopy Create free account
hub / github.com/LibreVR/Revive / DestroySession

Method DestroySession

ReviveXR/Session.cpp:214–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214ovrResult 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
233ovrResult ovrHmdStruct::LocateViews(XrView out_Views[ovrEye_Count], XrViewStateFlags* out_Flags) const
234{

Callers 1

ovr_DestroyFunction · 0.80

Calls 1

AttachSessionMethod · 0.80

Tested by

no test coverage detected