fix stereobm crash on some cpu ocl

pull/1045/head
yao 12 years ago
parent 6db776f957
commit dbdeff2069
  1. 4
      modules/ocl/src/opencl/stereobm.cl

@ -162,8 +162,8 @@ __kernel void stereoKernel(__global unsigned char *left, __global unsigned char
int y_tex;
int x_tex = X - radius;
if (x_tex >= cwidth)
return;
//if (x_tex >= cwidth)
// return;
for(int d = STEREO_MIND; d < maxdisp; d += STEREO_DISP_STEP)
{

Loading…
Cancel
Save