Merge pull request #3167 from akarsakov:ocl_rm_clFinish

This commit is contained in:
Vadim Pisarevsky 2014-09-04 17:00:10 +00:00
commit 26c284b225

View File

@ -3963,7 +3963,6 @@ public:
u->markDeviceMemMapped(false);
CV_Assert( (retval = clEnqueueUnmapMemObject(q,
(cl_mem)u->handle, u->data, 0, 0, 0)) == CL_SUCCESS );
CV_OclDbgAssert(clFinish(q) == CL_SUCCESS);
u->data = 0;
}
else if( u->copyOnMap() && u->deviceCopyObsolete() )