mirror of
https://github.com/lubosz/overte.git
synced 2025-04-14 16:06:13 +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() {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue