Skip to content

Commit fea5586

Browse files
committed
Merge pull request #108869 from dsnopek/meta-openxr-1049-aim-pose-bug
OpenXR: Work around bug with Meta runtime on 1.0.49
2 parents 71a9948 + 2687b19 commit fea5586

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/openxr/openxr_api.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,13 +598,18 @@ bool OpenXRAPI::create_instance() {
598598
extension_ptrs.push_back(enabled_extensions[i].get_data());
599599
}
600600

601+
// We explicitly set the version to 1.0.48 in order to workaround a bug (see #108850) in Meta's runtime.
602+
// Once that is fixed, restore this to using XR_API_VERSION_1_0, which is the version associated with the
603+
// OpenXR headers that we're using.
604+
XrVersion openxr_version = XR_MAKE_VERSION(1, 0, 48);
605+
601606
// Create our OpenXR instance
602607
XrApplicationInfo application_info{
603608
"Godot Engine", // applicationName, if we're running a game we'll update this down below.
604609
1, // applicationVersion, we don't currently have this
605610
"Godot Engine", // engineName
606611
GODOT_VERSION_MAJOR * 10000 + GODOT_VERSION_MINOR * 100 + GODOT_VERSION_PATCH, // engineVersion 4.0 -> 40000, 4.0.1 -> 40001, 4.1 -> 40100, etc.
607-
XR_API_VERSION_1_0 // apiVersion
612+
openxr_version, // apiVersion
608613
};
609614

610615
void *next_pointer = nullptr;

0 commit comments

Comments
 (0)