diff --git a/src/utils/rdielprec.cpp b/src/utils/rdielprec.cpp index 0b56790d..1bb36651 100644 --- a/src/utils/rdielprec.cpp +++ b/src/utils/rdielprec.cpp @@ -41,7 +41,7 @@ void transmittanceIntegrand(const BSDF *bsdf, const Vector &wi, size_t nPts, con Intersection its; #pragma omp parallel for - for (size_t i=0; isample(bRec, sample)[0]; - if (std::isnan(out[i])) + if (mts_isnan(out[i])) SLog(EError, "%s\n\nNaN!", bRec.toString().c_str()); } }