diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 87e99e585..f3b6b9a2f 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -1536,7 +1536,7 @@ static bool ocl_minMaxIdx( InputArray _src, double* minVal, double* maxVal, int* } size_t globalsize = groupnum * wgs; - if (!k.run(1, &globalsize, &wgs, false)) + if (!k.run(1, &globalsize, &wgs, true)) return false; static const getMinMaxResFunc functab[7] =