mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 12:38:27 +02:00
Merge pull request #14728 from SamGondelman/crash
Case 20411: Fix crash on subsequent entitlements checks
This commit is contained in:
commit
04f33956e7
1 changed files with 11 additions and 8 deletions
|
@ -82,6 +82,8 @@ private:
|
|||
}
|
||||
|
||||
#ifdef OCULUS_APP_ID
|
||||
static std::once_flag once;
|
||||
std::call_once(once, []() {
|
||||
if (qApp->property(hifi::properties::OCULUS_STORE).toBool()) {
|
||||
if (ovr_PlatformInitializeWindows(OCULUS_APP_ID) != ovrPlatformInitialize_Success) {
|
||||
qCWarning(oculusLog) << "Unable to initialize the platform for entitlement check - fail the check" << ovr::getError();
|
||||
|
@ -91,6 +93,7 @@ private:
|
|||
ovr_Entitlement_GetIsViewerEntitled();
|
||||
}
|
||||
}
|
||||
});
|
||||
#endif
|
||||
|
||||
ovrGraphicsLuid luid;
|
||||
|
|
Loading…
Reference in a new issue