Skip to content

Commit

Permalink
measured_polarized: zero-initialize BSDFSample3f
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Nov 30, 2022
1 parent 28403f3 commit 4af72bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsdfs/measured_polarized.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class MeasuredPolarized final : public BSDF<Float, Spectrum> {
Float cos_theta_i = Frame3f::cos_theta(si.wi);
active &= cos_theta_i > 0.f;

BSDFSample3f bs;
BSDFSample3f bs = dr::zeros<BSDFSample3f>();
if (unlikely(dr::none_or<false>(active) || !ctx.is_enabled(BSDFFlags::GlossyReflection)))
return { bs, 0.f };

Expand Down

0 comments on commit 4af72bd

Please sign in to comment.