diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-30 12:42:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-03-30 12:45:30 +0300 |
commit | a88801b99ba1d4d36b3acb1cbfb12f801d1714f1 (patch) | |
tree | e5262705a1603d8135cd4717c04065b8639ce722 /intern/cycles/device | |
parent | ced8fff5de0f614b3e08013335b8a222e808633f (diff) |
Cycles: Fix missing kernel re-compilation after recent changes
Reported by Mai in IRC, thanks!
Diffstat (limited to 'intern/cycles/device')
-rw-r--r-- | intern/cycles/device/opencl/opencl_util.cpp | 4 |
1 files 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)); |