aboutsummaryrefslogtreecommitdiff
path: root/ports/openxr-loader/001-fix-array-decl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/openxr-loader/001-fix-array-decl.patch')
-rw-r--r--ports/openxr-loader/001-fix-array-decl.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/ports/openxr-loader/001-fix-array-decl.patch b/ports/openxr-loader/001-fix-array-decl.patch
new file mode 100644
index 000000000..9bd25eb31
--- /dev/null
+++ b/ports/openxr-loader/001-fix-array-decl.patch
@@ -0,0 +1,26 @@
+--- openxr.hpp 2020-08-16 14:42:30.845279600 -0700
++++ openxr.hpp 2020-08-16 14:45:19.707229200 -0700
+@@ -18249,9 +18249,9 @@
+ public:
+ // ctor
+ SpatialGraphNodeSpaceCreateInfoMSFT (
+- const SpatialGraphNodeTypeMSFT& nodeType_ = {},
+- uint8_t nodeId[16]_ = 0,
+- const Posef& pose_ = {}
++ const SpatialGraphNodeTypeMSFT& nodeType_,
++ uint8_t nodeId_[16],
++ const Posef& pose_
+ )
+ :
+
+@@ -18259,9 +18259,9 @@
+ ) ,
+
+ nodeType {nodeType_} ,
+- nodeId {nodeId_} ,
+ pose {pose_}
+ {
++ memcpy(nodeId, nodeId_, 16);
+ }
+ operator const XrSpatialGraphNodeSpaceCreateInfoMSFT&() const { return *reinterpret_cast<const XrSpatialGraphNodeSpaceCreateInfoMSFT*>(this); }
+ operator XrSpatialGraphNodeSpaceCreateInfoMSFT &() {