From a88801b99ba1d4d36b3acb1cbfb12f801d1714f1 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 30 Mar 2017 11:42:23 +0200 Subject: [PATCH] Cycles: Fix missing kernel re-compilation after recent changes Reported by Mai in IRC, thanks! --- intern/cycles/device/opencl/opencl_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/cycles/device/opencl/opencl_util.cpp b/intern/cycles/device/opencl/opencl_util.cpp index 44845c944bf..ed35b6c92b7 100644 --- a/intern/cycles/device/opencl/opencl_util.cpp +++ b/intern/cycles/device/opencl/opencl_util.cpp @@ -443,8 +443,8 @@ void OpenCLDeviceBase::OpenCLProgram::load() add_log(string("OpenCL program ") + program_name + " not found in cache.", true); /* need to create source to get md5 */ - string source = "#include \"kernels/opencl/" + kernel_file + "\"\n"; - source = path_source_replace_includes(source, path_get("source/kernel")); + string source = "#include \"kernel/kernels/opencl/" + kernel_file + "\"\n"; + source = path_source_replace_includes(source, path_get("source")); string basename = "cycles_kernel_" + program_name + "_" + device_md5 + "_" + util_md5_string(source); basename = path_cache_get(path_join("kernels", basename));