Fix error in OCL minmaxloc
authorvbystricky <user@user-pc.(none)>
Thu, 31 Jul 2014 13:29:06 +0000 (17:29 +0400)
committervbystricky <user@user-pc.(none)>
Thu, 31 Jul 2014 15:04:38 +0000 (19:04 +0400)
modules/core/src/opencl/minmaxloc.cl

index 664673e..1d84567 100644 (file)
@@ -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])