-Fix OpenCL code generation bug for DepthSine2 in flam3 compat mode.
This commit is contained in:
@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user