-Fix OpenCL code generation bug for DepthSine2 in flam3 compat mode.

This commit is contained in:
Matt Feemster
2026-02-20 16:28:41 -07:00
parent 007ae99ace
commit 2ba3764aeb

View File

@ -3988,7 +3988,7 @@ public:
<< "\t\treal_t weight = " << weight << ";\n";
if (Compat::m_Compat)
ss << "\t\treal_t rad = sqrt(Sqr((vIn.x - " << x0 << ") / " << mulx << ") + Sqr((vIn.y - " << y0 << ") / " << muly << "); \n";
ss << "\t\treal_t rad = sqrt(Sqr((vIn.x - " << x0 << ") / " << mulx << ") + Sqr((vIn.y - " << y0 << ") / " << muly << ")); \n";
else
ss << "\t\treal_t rad = sqrt(Sqr(vIn.x - " << x0 << ") * " << oneovermulsqx << " + Sqr(vIn.y - " << y0 << ") * " << oneovermulsqy << "); \n";