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

core(ocl): avoid limit of Image kernel args

This commit is contained in:
Alexander Alekhin
2021-05-28 00:36:56 +00:00
parent 212815a10d
commit 3d394943e6
2 changed files with 65 additions and 1 deletions
-1
View File
@@ -2806,7 +2806,6 @@ struct Kernel::Impl
void registerImageArgument(int arg, const Image2D& image)
{
CV_CheckGE(arg, 0, "");
CV_CheckLT(arg, (int)MAX_ARRS, "");
if (arg < (int)shadow_images.size() && shadow_images[arg].ptr() != image.ptr()) // TODO future: replace ptr => impl (more strong check)
{
CV_Check(arg, !isInProgress, "ocl::Kernel: clearing of pending Image2D arguments is not allowed");