ocl: add map tests

This commit is contained in:
Alexander Alekhin
2015-07-27 14:55:06 +03:00
parent b36f565d13
commit cd5c70691a
2 changed files with 28 additions and 5 deletions

View File

@@ -606,7 +606,7 @@ void* UMat::handle(int accessFlags) const
// check flags: if CPU copy is newer, copy it back to GPU.
if( u->deviceCopyObsolete() )
{
CV_Assert(u->refcount == 0);
CV_Assert(u->refcount == 0 || u->origdata);
u->currAllocator->unmap(u);
}