From 24214fbd5737da485acdab5349d080a59613e478 Mon Sep 17 00:00:00 2001 From: Lawrence37 <45837045+Lawrence37@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:14:39 -0800 Subject: [PATCH] Disable exposure Laplacian when CBDL enabled Avoids crashes due to NaNs. --- rtengine/iplocallab.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/iplocallab.cc b/rtengine/iplocallab.cc index 13f974d1aa..5fbefd37b2 100644 --- a/rtengine/iplocallab.cc +++ b/rtengine/iplocallab.cc @@ -20533,7 +20533,7 @@ void ImProcFunctions::Lab_Local( float epsi = 0.000001f; - if((lp.laplacexp > 1.f && lp.exposena) || (lp.strng > 2.f && lp.sfena)){//strong Laplacian + if((lp.laplacexp > 1.f && lp.exposena) || (lp.strng > 2.f && lp.sfena) || (lp.exposena && lp.expcomp != 0.f && params->dirpyrequalizer.enabled)){//strong Laplacian notlaplacian = true; }