improve translate_make

This commit is contained in:
Recep Aslantas
2018-05-23 22:08:12 +03:00
parent fb2cac9816
commit 6cd3d52dc5

View File

@@ -194,8 +194,8 @@ glm_translate_z(mat4 m, float z) {
CGLM_INLINE
void
glm_translate_make(mat4 m, vec3 v) {
mat4 t = GLM_MAT4_IDENTITY_INIT;
glm_translate_to(t, v, m);
glm_mat4_identity(m);
glm_vec_copy(v, m[3]);
}
/*!