mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 04:34:38 +02:00
fix passing of OCULUS_APP_ID to platform SDK initialization
This commit is contained in:
parent
f592d8d894
commit
2ec9b81aa6
2 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,7 @@ if (WIN32)
|
|||
|
||||
# if we were passed an Oculus App ID for entitlement checks, send that along
|
||||
if (DEFINED ENV{OCULUS_APP_ID})
|
||||
add_definitions(-DOCULUS_APP_ID="\\"$ENV{OCULUS_APP_ID}\\"")
|
||||
add_definitions(-DOCULUS_APP_ID="$ENV{OCULUS_APP_ID}")
|
||||
endif ()
|
||||
|
||||
set(TARGET_NAME oculus)
|
||||
|
|
|
@ -96,8 +96,7 @@ ovrSession acquireOculusSession() {
|
|||
if (ovr_PlatformInitializeWindows(OCULUS_APP_ID) != ovrPlatformInitialize_Success) {
|
||||
// we were unable to initialize the platform for entitlement check - fail the check
|
||||
_quitRequested = true;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qCDebug(oculus) << "Performing Oculus Platform entitlement check";
|
||||
ovr_Entitlement_GetIsViewerEntitled();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue