aboutsummaryrefslogtreecommitdiff
path: root/graytrace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graytrace.cpp')
-rw-r--r--graytrace.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/graytrace.cpp b/graytrace.cpp
index b74d387..c09a202 100644
--- a/graytrace.cpp
+++ b/graytrace.cpp
@@ -123,7 +123,8 @@ public:
class Primitive{
public:
- bool isLight=false;
+ bool isLight;
+ Primitive(void):isLight(false){}
virtual ~Primitive(void){}
/* A line is represented by the formula:
X = P + D * t