Commit 5ee00ec5 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5176 from vladimir-dudnik:master

parents 8e5ce69e 58934f1e
......@@ -4572,6 +4572,8 @@ public:
else
{
// CL_MEM_USE_HOST_PTR (nothing is required) and OTHER cases
if (u->flags & UMatData::USER_ALLOCATED)
{
cl_int retval = 0;
void* data = clEnqueueMapBuffer(q, (cl_mem)u->handle, CL_TRUE,
(CL_MAP_READ | CL_MAP_WRITE),
......@@ -4581,6 +4583,7 @@ public:
CV_OclDbgAssert(clFinish(q) == CL_SUCCESS);
}
}
}
u->markHostCopyObsolete(false);
}
#ifdef HAVE_OPENCL_SVM
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment