diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index d8ed0d8f0..bbf36de66 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -273,10 +273,10 @@ void ImProcFunctions::rgbProc (Image16* working, LabImage* lab, int* tonecurve, double factor; int tW = working->width; int tH = working->height; - - #pragma omp parallel for if (multiThread) + int r, g, b; + #pragma omp parallel for private(r, g, b,factor,mapval) if (multiThread) for (int i=0; ir[i][j];