提交 3bc8e9f5 编写于 作者: M Matt Pharr

WeightedReservoirSampler: zero-initialize reservoir value

上级 4b193365
......@@ -592,7 +592,7 @@ class WeightedReservoirSampler {
RNG rng;
Float weightSum = 0;
Float reservoirWeight = 0;
T reservoir;
T reservoir{};
};
// PiecewiseConstant1D Definition
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册