Cycles: Avoid possibly uninitialized variable

This commit is contained in:
Sergey Sharybin 2016-04-06 10:51:04 +02:00
parent 5ddf6ca87a
commit e10ec6ee9a
1 changed files with 5 additions and 1 deletions

View File

@ -61,7 +61,11 @@ public:
int dim;
float pos;
BVHSpatialSplit() : sah(FLT_MAX), dim(0), pos(0.0f) {}
BVHSpatialSplit() : sah(FLT_MAX),
dim(0),
pos(0.0f),
storage_(NULL),
references_(NULL) {}
BVHSpatialSplit(const BVHBuild& builder,
BVHSpatialStorage *storage,
const BVHRange& range,