Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vsgvr/include/vsgvr/actions/OpenXRAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace vsgvr {
std::string _name;
std::string _localisedName;
std::vector<std::string> _subPaths;
XrAction _action;
XrAction _action = XR_NULL_HANDLE;

struct ActionState {
XrActionStateBoolean _stateBool = {};
Expand Down
4 changes: 3 additions & 1 deletion vsgvr/src/vsgvr/actions/OpenXRAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ namespace vsgvr

void OpenXRAction::destroyAction()
{
xr_check(xrDestroyAction(_action));
if( _action != XR_NULL_HANDLE ) {
xr_check(xrDestroyAction(_action));
}
}
}