Skip to content

Commit 9201924

Browse files
committed
downgrade openxr - latest version is not yet supported by platforms
1 parent d1d4408 commit 9201924

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

sources/libengine/virtualReality/openxr.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ namespace cage
3939
const ConfigBool confEnableValidation("cage/virtualReality/validationLayer", CAGE_DEBUG_BOOL);
4040
const ConfigBool confEnableDebugUtils("cage/virtualReality/debugUtils", CAGE_DEBUG_BOOL);
4141

42-
constexpr const XrPosef IdentityPose = { .orientation = { .x = 0, .y = 0, .z = 0, .w = 1.0 }, .position = { .x = 0, .y = 0, .z = 0 } };
43-
constexpr const Transform InvalidTransform = Transform(Vec3(), Quat(), 0);
44-
constexpr const XrSpaceLocationFlags ValidMask = XR_SPACE_LOCATION_POSITION_VALID_BIT | XR_SPACE_LOCATION_ORIENTATION_VALID_BIT;
45-
constexpr const XrSpaceLocationFlags TrackingMask = XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT;
42+
constexpr XrPosef IdentityPose = { .orientation = { .x = 0, .y = 0, .z = 0, .w = 1.0 }, .position = { .x = 0, .y = 0, .z = 0 } };
43+
constexpr Transform InvalidTransform = Transform(Vec3(), Quat(), 0);
44+
constexpr XrSpaceLocationFlags ValidMask = XR_SPACE_LOCATION_POSITION_VALID_BIT | XR_SPACE_LOCATION_ORIENTATION_VALID_BIT;
45+
constexpr XrSpaceLocationFlags TrackingMask = XR_SPACE_LOCATION_POSITION_TRACKED_BIT | XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT;
4646

4747
template<class T>
4848
CAGE_FORCE_INLINE void init(T &t, XrStructureType type)
@@ -271,6 +271,7 @@ namespace cage
271271
else
272272
haveApilayerCoreValidation = false;
273273

274+
CAGE_LOG(SeverityEnum::Info, "virtualReality", "creating openxr instance");
274275
XrInstanceCreateInfo info;
275276
init(info, XR_TYPE_INSTANCE_CREATE_INFO);
276277
info.enabledExtensionCount = exts.size();

0 commit comments

Comments
 (0)