mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
st/oxr: Work around stict-aliasing warning (NFC)
This commit is contained in:
parent
7a1dbbe8a1
commit
5443e3a069
|
@ -389,8 +389,8 @@ oxr_session_views(struct oxr_logger *log,
|
||||||
safe_copy.xrt = xdev->hmd->views[i].fov;
|
safe_copy.xrt = xdev->hmd->views[i].fov;
|
||||||
views[i].fov = safe_copy.oxr;
|
views[i].fov = safe_copy.oxr;
|
||||||
|
|
||||||
if (!math_quat_ensure_normalized(
|
struct xrt_pose *pose = (struct xrt_pose *)&views[i].pose;
|
||||||
&((struct xrt_pose *)&views[i].pose)->orientation)) {
|
if (!math_quat_ensure_normalized(&pose->orientation)) {
|
||||||
return oxr_error(
|
return oxr_error(
|
||||||
log, XR_ERROR_RUNTIME_FAILURE,
|
log, XR_ERROR_RUNTIME_FAILURE,
|
||||||
"Quaternion in xrLocateViews was invalid");
|
"Quaternion in xrLocateViews was invalid");
|
||||||
|
|
Loading…
Reference in a new issue