Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

matrix.rotate crash with NaN arguments

edited April 2014 in Bugs Posts: 22

matrix.rotate crashes if one of the last three parameters is NaN, e.g.

matrix():rotate(0, 0/0, 0, 0)

(The real code that fell over this tried to use a normalized vec3 for the last three parameters, but did not check it wasn't zero first, in which case normalizing will return a vec3 where every component is NaN.)

Comments

Sign In or Register to comment.