Skip to content

Commit 5ea5d08

Browse files
committed
Merge pull request opencv#8365 from csukuangfj:patch-3
2 parents 08c6ffa + debc1c4 commit 5ea5d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/ocl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3434,7 +3434,7 @@ int Kernel::set(int i, const KernelArg& arg)
34343434
if( !(arg.flags & KernelArg::NO_SIZE) )
34353435
{
34363436
int cols = u3d.cols*arg.wscale/arg.iwscale;
3437-
CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, sizeof(u3d.slices), &u3d.rows) == CL_SUCCESS);
3437+
CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)i, sizeof(u3d.slices), &u3d.slices) == CL_SUCCESS);
34383438
CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+1), sizeof(u3d.rows), &u3d.rows) == CL_SUCCESS);
34393439
CV_OclDbgAssert(clSetKernelArg(p->handle, (cl_uint)(i+2), sizeof(u3d.cols), &cols) == CL_SUCCESS);
34403440
i += 3;

0 commit comments

Comments
 (0)