1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

fix code in the kernel

This commit is contained in:
vbystricky
2014-05-23 11:09:57 +04:00
parent 04433b2d2b
commit 63584bffda
+1 -1
View File
@@ -110,7 +110,7 @@ __kernel void reduce_horz_pre(__global const uchar * srcptr, int src_step, int s
dstT tmp[cn] = { INIT_VALUE };
int src_step_mul = BUF_COLS * cn;
for (int x = 0; x < cols; x += BUF_COLS, src += src_step_mul)
for (int idx = x; idx < cols; idx += BUF_COLS, src += src_step_mul)
{
#pragma unroll
for (int c = 0; c < cn; ++c)