fix passing of OCULUS_APP_ID to platform SDK initialization

This commit is contained in:
Stephen Birarda 2016-12-16 15:48:16 -08:00
parent f592d8d894
commit 2ec9b81aa6
2 changed files with 2 additions and 3 deletions

View file

@ -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)

View file

@ -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();
}