Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/cycles/device/opencl/device_opencl_impl.cpp2
1 files changed, 1 insertions, 1 deletions
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--;
});