mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
Don't release the Oculus plugin when disabling the plugin
This commit is contained in:
parent
08a19c0471
commit
ffc2c75534
1 changed files with 2 additions and 0 deletions
|
@ -90,12 +90,14 @@ ovrSession acquireOculusSession() {
|
||||||
|
|
||||||
void releaseOculusSession() {
|
void releaseOculusSession() {
|
||||||
Q_ASSERT(refCount > 0 && session);
|
Q_ASSERT(refCount > 0 && session);
|
||||||
|
#if 0
|
||||||
if (!--refCount) {
|
if (!--refCount) {
|
||||||
qCDebug(oculus) << "oculus: zero refcount, shutdown SDK and session";
|
qCDebug(oculus) << "oculus: zero refcount, shutdown SDK and session";
|
||||||
ovr_Destroy(session);
|
ovr_Destroy(session);
|
||||||
ovr_Shutdown();
|
ovr_Shutdown();
|
||||||
session = nullptr;
|
session = nullptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue