Show opencl program build errors on info tab, when compilation fails

This commit is contained in:
Simon Detheridge
2015-02-20 20:36:01 +00:00
parent c01f444d52
commit 582bd93dea
3 changed files with 11 additions and 1 deletions

View File

@ -1276,7 +1276,11 @@ int RendererCL<T>::MakeAndGetFinalAccumProgram(T& alphaBase, T& alphaScale)
if (b)
kernelIndex = m_Wrapper.FindKernelIndex(finalAccumEntryPoint);//Try to find it again, it will be present if successfully built.
else
{
std::vector<std::string> errors = m_Wrapper.ProgramBuildErrors();
m_ErrorReport.insert(m_ErrorReport.end(), errors.begin(), errors.end());
m_ErrorReport.push_back(loc);
}
}
return kernelIndex;