mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
Replace the use of deprecated CGLM_PI* constants
This commit is contained in:
@@ -689,7 +689,7 @@ glm_quat_for(vec3 dir, vec3 fwd, vec3 up, versor dest) {
|
||||
|
||||
dot = glm_vec_dot(dir, fwd);
|
||||
if (fabsf(dot + 1.0f) < 0.000001f) {
|
||||
glm_quat_init(dest, up[0], up[1], up[2], CGLM_PI);
|
||||
glm_quat_init(dest, up[0], up[1], up[2], GLM_PIf);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user