st/oxr: fix XrFacialTrackerHTC validation

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2306>
This commit is contained in:
galister 2024-08-13 01:19:41 +09:00
parent 2d3978b1b0
commit 30ae628b83

View file

@ -67,8 +67,7 @@ oxr_xrGetFacialExpressionsHTC(XrFacialTrackerHTC facialTracker, XrFacialExpressi
struct oxr_logger log;
struct oxr_facial_tracker_htc *facial_tracker_htc = NULL;
OXR_VERIFY_FACE_TRACKER_HTC_AND_INIT_LOG(&log, facialExpressions, facial_tracker_htc,
"xrGetFacialExpressionsHTC");
OXR_VERIFY_FACE_TRACKER_HTC_AND_INIT_LOG(&log, facialTracker, facial_tracker_htc, "xrGetFacialExpressionsHTC");
OXR_VERIFY_SESSION_NOT_LOST(&log, facial_tracker_htc->sess);
OXR_VERIFY_ARG_NOT_NULL(&log, facial_tracker_htc->xdev);
OXR_VERIFY_ARG_TYPE_AND_NOT_NULL(&log, facialExpressions, XR_TYPE_FACIAL_EXPRESSIONS_HTC);