Cycles: Report human-readable string of compilation error code

It is possible that compilation will fail without giving anything in the
log buffer. For this cases giving a tip about error code will be really
handy.

Patch by @Ilia, thanks!
This commit is contained in:
Sergey Sharybin
2016-08-04 12:14:43 +02:00
parent 14720e2e62
commit 29dc04d9bb

View File

@@ -875,6 +875,7 @@ public:
if(ciErr != CL_SUCCESS) {
opencl_error("OpenCL build failed: errors in console");
fprintf(stderr, "Build error: %s\n", clewErrorString(ciErr));
return false;
}