Fixed some OpenCL interface bugs

This commit is contained in:
Dmitry Kurtaev 2017-08-09 11:54:55 +03:00
parent 87c27a074d
commit 41519d3ac0
2 changed files with 1 additions and 2 deletions

View File

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

View File

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