Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-04-06 11:51:04 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-04-06 11:51:04 +0300
commite10ec6ee9ad5b9a88fb4a20a913f92fd2d01bdab (patch)
tree8953000304cb2876a48888bec5954b996c615462 /intern/cycles/bvh/bvh_split.h
parent5ddf6ca87a34bd945e5417c9891c12a7d0e07b1f (diff)
Cycles: Avoid possibly uninitialized variable
Diffstat (limited to 'intern/cycles/bvh/bvh_split.h')
-rw-r--r--intern/cycles/bvh/bvh_split.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_split.h b/intern/cycles/bvh/bvh_split.h
index 948aaa23909..aea8b2565e0 100644
--- a/intern/cycles/bvh/bvh_split.h
+++ b/intern/cycles/bvh/bvh_split.h
@@ -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,