mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
st/oxr: Initialize action act_set pointer
Fixes a segfault in OXR_VERIFY_ACTION_AND_INIT_LOG
This commit is contained in:
parent
bc77052493
commit
570ba1ae88
|
@ -199,6 +199,7 @@ oxr_xrCreateAction(XrActionSet actionSet,
|
||||||
struct oxr_action* act = NULL;
|
struct oxr_action* act = NULL;
|
||||||
OXR_ALLOCATE_HANDLE_OR_RETURN(&log, act, OXR_XR_DEBUG_ACTION,
|
OXR_ALLOCATE_HANDLE_OR_RETURN(&log, act, OXR_XR_DEBUG_ACTION,
|
||||||
oxr_action_destroy, &act_set->handle);
|
oxr_action_destroy, &act_set->handle);
|
||||||
|
act->act_set = act_set;
|
||||||
*action = (XrAction)act;
|
*action = (XrAction)act;
|
||||||
|
|
||||||
return XR_SUCCESS;
|
return XR_SUCCESS;
|
||||||
|
|
Loading…
Reference in a new issue