Skip to content

Commit

Permalink
Fix small issue in measured_polarized when compiled on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tizian committed Sep 8, 2021
1 parent b92ddc2 commit 858509e
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 @@ -273,7 +273,7 @@ class MeasuredPolarized final : public BSDF<Float, Spectrum> {

/* Invalid configurations such as transmission directions are encoded as NaNs.
Make sure these values don't end up in the interpolated value. */
masked(value, any(isnan(value(0,0)))) = 0.f;
enoki::masked(value, enoki::any(enoki::isnan(value(0,0)))) = 0.f;

// Make sure intensity is non-negative
value(0, 0) = max(0.f, value(0,0));
Expand Down

0 comments on commit 858509e

Please sign in to comment.