Make m3vmulf return v[3] unchanged

This commit is contained in:
Bill Currie 2021-03-10 19:40:19 +09:00
parent 169e0192f2
commit 5949753579

View file

@ -104,7 +104,7 @@ m3vmulf (const mat4f_t m, vec4f_t v)
{
vec4f_t w;
w = m[0] * v[0] + m[1] * v[1] + m[2] * v[2];
w[3] = 1;
w[3] = v[3];
return w;
}