Wow travis detected (by luck?) that uninitialised variable where one test failed in one specific configuration but no other one..

And thanks valgrind to give me a hint!
This commit is contained in:
Godzil
2020-02-20 02:01:35 +00:00
parent 9e1f448e0f
commit 4b4d2b7819

View File

@@ -14,7 +14,7 @@ Computation Intersection::prepareComputation(Ray r)
Tuple hitP = r.position(this->t); Tuple hitP = r.position(this->t);
Tuple normalV = this->object->normalAt(hitP); Tuple normalV = this->object->normalAt(hitP);
Tuple eyeV = -r.direction; Tuple eyeV = -r.direction;
bool inside; bool inside = false;
if (normalV.dot(eyeV) < 0) if (normalV.dot(eyeV) < 0)
{ {