diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-08-04 13:14:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-08-04 13:14:43 +0300 |
commit | 29dc04d9bb59f557f5e39f458df2ebc6cb53090a (patch) | |
tree | 10467ffeede77ddfb4efa8790904305d61adb579 /intern | |
parent | 14720e2e6265efdcdfe9971226d33db51e477970 (diff) |
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!
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 50490f3a20e..5c05aeb5569 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -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; } |