diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-08 15:57:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-08 15:57:21 +0300 |
commit | 97c4c2689fda8d1da8c98612b10dd6212764f067 (patch) | |
tree | 00650f500ff8e4698d03cd08daa35252a3f5afb2 | |
parent | 05dfe9c318e1408f0e4ee59bc1bf65a2d3c2eae1 (diff) |
Cycles: Make it more obvious message which initialization failed
-rw-r--r-- | intern/cycles/device/opencl/opencl_base.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/cycles/device/opencl/opencl_base.cpp b/intern/cycles/device/opencl/opencl_base.cpp index 04a7a4d5bd0..c5f44f84e8c 100644 --- a/intern/cycles/device/opencl/opencl_base.cpp +++ b/intern/cycles/device/opencl/opencl_base.cpp @@ -114,12 +114,16 @@ OpenCLDeviceBase::OpenCLDeviceBase(DeviceInfo& info, Stats &stats, bool backgrou } cqCommandQueue = clCreateCommandQueue(cxContext, cdDevice, 0, &ciErr); - if(opencl_error(ciErr)) + if(opencl_error(ciErr)) { + opencl_error("OpenCL: Error creating command queue"); return; + } null_mem = (device_ptr)clCreateBuffer(cxContext, CL_MEM_READ_ONLY, 1, NULL, &ciErr); - if(opencl_error(ciErr)) + if(opencl_error(ciErr)) { + opencl_error("OpenCL: Error creating memory buffer for NULL"); return; + } fprintf(stderr, "Device init success\n"); device_initialized = true; |