Don't release the Oculus plugin when disabling the plugin

This commit is contained in:
Brad Davis 2016-04-05 09:59:12 -07:00
parent 08a19c0471
commit ffc2c75534

View file

@ -90,12 +90,14 @@ ovrSession acquireOculusSession() {
void releaseOculusSession() {
Q_ASSERT(refCount > 0 && session);
#if 0
if (!--refCount) {
qCDebug(oculus) << "oculus: zero refcount, shutdown SDK and session";
ovr_Destroy(session);
ovr_Shutdown();
session = nullptr;
}
#endif
}