diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-26 19:08:21 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-05-26 19:29:21 +0300 |
commit | cf19012fb0f61f4b1af6c05d3fbce9649a56147c (patch) | |
tree | 88294bfc2351b171f9e3e251e4547178db66f871 /intern/cycles/device/device_opencl.cpp | |
parent | b90c7dd730f15a9708a6bfcb507bf7264508deba (diff) |
Fix T44831: Crash when using Intel OpenCL with split kernel
The issue was caused by underallocation of object motion related arrays,
which happened by accident.
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 2f9f9af13d2..72224d3f027 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -2329,7 +2329,7 @@ public: /* Object motion. */ ob_tfm_sd = mem_alloc(num_global_elements * sizeof(Transform)); ob_tfm_sd_DL_shadow = mem_alloc(num_global_elements * 2 * sizeof(Transform)); - ob_itfm_sd = mem_alloc(num_global_elements * sizeof(float3)); + ob_itfm_sd = mem_alloc(num_global_elements * sizeof(Transform)); ob_itfm_sd_DL_shadow = mem_alloc(num_global_elements * 2 * sizeof(Transform)); closure_sd = mem_alloc(num_global_elements * ShaderClosure_size); |