MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / Cleanup

Method Cleanup

samples/drivers/drivers/simplehmd/src/device_provider.cpp:92–96  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: This function is called just before the driver is unloaded from vrserver. Drivers should free whatever resources they have acquired over the session here. Any calls to the server is guaranteed to be valid before this, but not after it has been called. -------------------------------------------------------------

Source from the content-addressed store, hash-verified

90// Any calls to the server is guaranteed to be valid before this, but not after it has been called.
91//-----------------------------------------------------------------------------
92void MyDeviceProvider::Cleanup()
93{
94 // Our controller devices will have already deactivated. Let's now destroy them.
95 my_hmd_device_ = nullptr;
96}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected