From 41519d3ac0f718d45de663a7d4ad850cdd2d0d8f Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Wed, 9 Aug 2017 11:54:55 +0300 Subject: [PATCH] Fixed some OpenCL interface bugs --- modules/core/include/opencv2/core/ocl.hpp | 1 - modules/core/src/ocl.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/ocl.hpp b/modules/core/include/opencv2/core/ocl.hpp index 2fb02b9014..9c3b4faf64 100644 --- a/modules/core/include/opencv2/core/ocl.hpp +++ b/modules/core/include/opencv2/core/ocl.hpp @@ -584,7 +584,6 @@ public: Program(); Program(const ProgramSource& src, const String& buildflags, String& errmsg); - explicit Program(const String& buf); Program(const Program& prog); Program& operator = (const Program& prog); diff --git a/modules/core/src/ocl.cpp b/modules/core/src/ocl.cpp index f25b9c0d76..14a90c68f4 100644 --- a/modules/core/src/ocl.cpp +++ b/modules/core/src/ocl.cpp @@ -2143,7 +2143,7 @@ int Kernel::set(int i, const Image2D& image2D) int Kernel::set(int i, const UMat& m) { - return set(i, KernelArg(KernelArg::READ_WRITE, (UMat*)&m, 0, 0)); + return set(i, KernelArg(KernelArg::READ_WRITE, (UMat*)&m)); } int Kernel::set(int i, const KernelArg& arg)