From 11a0e3ff783e986bb340e91dcb29779835c6d4ee Mon Sep 17 00:00:00 2001 From: vbystricky Date: Thu, 31 Jul 2014 17:29:06 +0400 Subject: [PATCH] Fix error in OCL minmaxloc --- modules/core/src/opencl/minmaxloc.cl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/src/opencl/minmaxloc.cl b/modules/core/src/opencl/minmaxloc.cl index 664673e..1d84567 100644 --- a/modules/core/src/opencl/minmaxloc.cl +++ b/modules/core/src/opencl/minmaxloc.cl @@ -209,7 +209,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off #if kercn == 1 #ifdef NEED_MINVAL -#if NEED_MINLOC +#ifdef NEED_MINLOC if (minval > temp) { minval = temp; @@ -326,7 +326,7 @@ __kernel void minmaxloc(__global const uchar * srcptr, int src_step, int src_off int lid2 = lsize + lid; #ifdef NEED_MINVAL -#ifdef NEED_MAXLOC +#ifdef NEED_MINLOC if (localmem_min[lid] >= localmem_min[lid2]) { if (localmem_min[lid] == localmem_min[lid2]) -- 2.7.4