fixed typo in OpenCLAllocator.upload method (wrong step used)

pull/5164/head
Vladimir Dudnik 10 years ago
parent 131d7c394e
commit 6bb8afde96
  1. 2
      modules/core/src/ocl.cpp

@ -5110,7 +5110,7 @@ public:
}
else
{
AlignedDataPtr2D<true, false> alignedPtr((uchar*)srcptr, new_sz[1], new_sz[0], new_dststep[0], CV_OPENCL_DATA_PTR_ALIGNMENT);
AlignedDataPtr2D<true, false> alignedPtr((uchar*)srcptr, new_sz[1], new_sz[0], new_srcstep[0], CV_OPENCL_DATA_PTR_ALIGNMENT);
uchar* ptr = alignedPtr.getAlignedPtr();
CV_Assert(clEnqueueWriteBufferRect(q, (cl_mem)u->handle, CL_TRUE,

Loading…
Cancel
Save