mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
improve normalize vectors
This commit is contained in:
@@ -492,7 +492,7 @@ glm_vec_normalize_to(vec3 vec, vec3 dest) {
|
||||
norm = glm_vec_norm(vec);
|
||||
|
||||
if (norm == 0.0f) {
|
||||
dest[0] = dest[1] = dest[2] = 0.0f;
|
||||
glm_vec_zero(dest);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user