Fixed some OpenCL interface bugs

pull/9338/head
Dmitry Kurtaev 7 years ago
parent 87c27a074d
commit 41519d3ac0
  1. 1
      modules/core/include/opencv2/core/ocl.hpp
  2. 2
      modules/core/src/ocl.cpp

@ -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);

@ -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)

Loading…
Cancel
Save