Add check for depths of destination and source image. Fix warning C4127.
This commit is contained in:
parent
af6134b4b6
commit
3013b469fe
@ -714,7 +714,10 @@ static bool ocl_boxFilter( InputArray _src, OutputArray _dst, int ddepth,
|
||||
if (BLOCK_SIZE < kernelWorkGroupSize)
|
||||
return false;
|
||||
tryWorkItems = kernelWorkGroupSize;
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4127 )
|
||||
} while (true);
|
||||
#pragma warning( pop )
|
||||
|
||||
_dst.create(sz, CV_MAKETYPE(ddepth, cn));
|
||||
UMat dst = _dst.getUMat();
|
||||
|
Loading…
Reference in New Issue
Block a user