cleaned up super_resolution sample from old OCL

This commit is contained in:
Ilya Lavrenov
2014-01-31 21:00:16 +04:00
parent c7fe162829
commit 2e8579fe9b
8 changed files with 27 additions and 245 deletions

View File

@@ -3365,7 +3365,7 @@ protected:
{
CV_DbgAssert(entry.clBuffer_ == NULL);
entry.capacity_ = alignSize(size, (int)_allocationGranularity(size));
Context2& ctx = Context2::getDefault();
Context& ctx = Context::getDefault();
cl_int retval = CL_SUCCESS;
entry.clBuffer_ = clCreateBuffer((cl_context)ctx.ptr(), CL_MEM_READ_WRITE, entry.capacity_, 0, &retval);
CV_Assert(retval == CL_SUCCESS);