Fix a minor issue with the divide by 0 fix

This commit is contained in:
Colton G. Rushton 2021-02-12 19:26:37 -04:00 committed by GitHub
parent b3c112ef21
commit debf5bd685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void *vec3f_normalize(Vec3f dest) {
if (sqrtf(dest[0] * dest[0] + dest[1] * dest[1] + dest[2] * dest[2]) != 0) {
f32 invsqrt = 1.0f / sqrtf(dest[0] * dest[0] + dest[1] * dest[1] + dest[2] * dest[2]);
} else {
f32 invsqrt = 1.0f * 0;
f32 invsqrt = 1.0f * 0.0f;
}
#endif