From 29dc04d9bb59f557f5e39f458df2ebc6cb53090a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 4 Aug 2016 12:14:43 +0200 Subject: 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! --- intern/cycles/device/device_opencl.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3