mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +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;
|
||||
views[i].fov = safe_copy.oxr;
|
||||
|
||||
if (!math_quat_ensure_normalized(
|
||||
&((struct xrt_pose *)&views[i].pose)->orientation)) {
|
||||
struct xrt_pose *pose = (struct xrt_pose *)&views[i].pose;
|
||||
if (!math_quat_ensure_normalized(&pose->orientation)) {
|
||||
return oxr_error(
|
||||
log, XR_ERROR_RUNTIME_FAILURE,
|
||||
"Quaternion in xrLocateViews was invalid");
|
||||
|
|
Loading…
Reference in a new issue