mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
fix versor alignment
This commit is contained in:
@@ -286,7 +286,7 @@ glm_quat_conjugate(versor q, versor dest) {
|
|||||||
CGLM_INLINE
|
CGLM_INLINE
|
||||||
void
|
void
|
||||||
glm_quat_inv(versor q, versor dest) {
|
glm_quat_inv(versor q, versor dest) {
|
||||||
CGLM_ALIGN(8) versor conj;
|
CGLM_ALIGN(16) versor conj;
|
||||||
glm_quat_conjugate(q, conj);
|
glm_quat_conjugate(q, conj);
|
||||||
glm_vec4_scale(conj, 1.0f / glm_vec4_norm2(q), dest);
|
glm_vec4_scale(conj, 1.0f / glm_vec4_norm2(q), dest);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user