mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Add macro for automatic alignment of matrices
This commit is contained in:
@@ -742,7 +742,7 @@ glm_quat_rotatev(versor q, vec3 v, vec3 dest) {
|
||||
CGLM_INLINE
|
||||
void
|
||||
glm_quat_rotate(mat4 m, versor q, mat4 dest) {
|
||||
CGLM_ALIGN(16) mat4 rot;
|
||||
CGLM_ALIGN_MAT mat4 rot;
|
||||
glm_quat_mat4(q, rot);
|
||||
glm_mul_rot(m, rot, dest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user