Commit: fb68a30af6e19a94a558f4d555af03d7b241ce25
Author: Brecht Van Lommel
Date:   Fri Jun 26 16:53:10 2020 +0200
Branches: master
https://developer.blender.org/rBfb68a30af6e19a94a558f4d555af03d7b241ce25

Fix crash compiling Cycles OpenCL, after recent TBB changes

===================================================================

M       intern/cycles/device/opencl/device_opencl_impl.cpp

===================================================================

diff --git a/intern/cycles/device/opencl/device_opencl_impl.cpp 
b/intern/cycles/device/opencl/device_opencl_impl.cpp
index 899de2b9d45..431aaf2ee45 100644
--- a/intern/cycles/device/opencl/device_opencl_impl.cpp
+++ b/intern/cycles/device/opencl/device_opencl_impl.cpp
@@ -800,7 +800,7 @@ bool OpenCLDevice::load_kernels(const 
DeviceRequestedFeatures &requested_feature
   foreach (OpenCLProgram *program, programs) {
     if (!program->load()) {
       load_kernel_num_compiling++;
-      load_kernel_task_pool.push([&] {
+      load_kernel_task_pool.push([=] {
         program->compile();
         load_kernel_num_compiling--;
       });

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to