mirror of
https://github.com/recp/cglm.git
synced 2025-10-04 01:00:46 +00:00
Merge pull request #65 from sinisterchipmunk/fix-versor-alignment
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