From 652c66a2fa0de350c3277b4eaa1778e21da4cefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 8 Oct 2015 00:47:14 +0200 Subject: [PATCH] Fixed a random behavior in god rays tests Due to an uninitialized value --- src/tests/GodRaysSampler_Test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/GodRaysSampler_Test.cpp b/src/tests/GodRaysSampler_Test.cpp index f4a0c97..9f1e797 100644 --- a/src/tests/GodRaysSampler_Test.cpp +++ b/src/tests/GodRaysSampler_Test.cpp @@ -65,6 +65,7 @@ class GodRayLightSource: public LightSource virtual bool getLightsAt(std::vector &result, const Vector3 &location) const override { LightComponent light; + light.altered = true; light.color = Color(fabs(location.x), fabs(location.y), fabs(location.z)); result.push_back(light); return true;