Commit a70467d7 authored by Ilya Lavrenov's avatar Ilya Lavrenov

removed unnecessary assert

parent 06e981f1
...@@ -2616,11 +2616,16 @@ struct Program::Impl ...@@ -2616,11 +2616,16 @@ struct Program::Impl
if( retval >= 0 ) if( retval >= 0 )
{ {
errmsg = String(buf); errmsg = String(buf);
CV_Error_(Error::StsAssert, ("OpenCL program can not be built: %s", errmsg.c_str())); printf("OpenCL program can not be built: %s", errmsg.c_str());
} }
} }
if( handle )
{
clReleaseProgram(handle);
handle = NULL;
}
} }
CV_Assert(retval >= 0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment