Fix crash compiling Cycles OpenCL, after recent TBB changes

This commit is contained in:
Brecht Van Lommel 2020-06-26 16:53:10 +02:00
parent 9c1d85117c
commit fb68a30af6
1 changed files with 1 additions and 1 deletions

View File

@ -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--;
});