Skip to content

Commit 9f3f060

Browse files
authored
Merge pull request #170 from rpavlik/helloxr-fix
hello_xr: Fix build issue.
2 parents fe08231 + 3083aa9 commit 9f3f060

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix issue in `hello_xr` breaking the build in certain limited conditions.

src/tests/hello_xr/openxr_program.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ struct OpenXrProgram : IOpenXrProgram {
344344
}
345345

346346
using InputState = struct {
347-
XrActionSet actionSet;
348-
XrAction grabAction;
349-
XrAction poseAction;
350-
XrAction vibrateAction;
351-
XrAction quitAction;
347+
XrActionSet actionSet{XR_NULL_HANDLE};
348+
XrAction grabAction{XR_NULL_HANDLE};
349+
XrAction poseAction{XR_NULL_HANDLE};
350+
XrAction vibrateAction{XR_NULL_HANDLE};
351+
XrAction quitAction{XR_NULL_HANDLE};
352352
std::array<XrPath, Side::COUNT> handSubactionPath;
353353
std::array<XrSpace, Side::COUNT> handSpace;
354354
std::array<float, Side::COUNT> handScale = {{1.0f, 1.0f}};
@@ -992,7 +992,7 @@ struct OpenXrProgram : IOpenXrProgram {
992992
bool m_sessionRunning{false};
993993

994994
XrEventDataBuffer m_eventDataBuffer;
995-
InputState m_input{XR_NULL_HANDLE};
995+
InputState m_input;
996996
};
997997
} // namespace
998998

0 commit comments

Comments
 (0)