1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

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
+1 -1
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);
}