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.
This commit is contained in:
Sergey Sharybin
2015-05-26 21:08:21 +05:00
parent b90c7dd730
commit cf19012fb0

View File

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