use float precision for math funcs

This commit is contained in:
Recep Aslantas
2017-01-14 12:04:03 +02:00
parent b1989bf3c9
commit 68657ec2cc
2 changed files with 4 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ glm_euler_angles(mat4 m, vec3 dest) {
glm_vec_dup(a[path], dest);
} else {
dest[0] = atan2(m[1][0], m[2][0]);
dest[0] = atan2f(m[1][0], m[2][0]);
dest[1] = M_PI_2;
dest[2] = 0.0f;
}