removed unnecessary assert

This commit is contained in:
Ilya Lavrenov 2013-12-23 15:49:45 +04:00
parent 06e981f1ce
commit a70467d7a2

View File

@ -2616,11 +2616,16 @@ struct Program::Impl
if( retval >= 0 )
{
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);
}
}