diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-13 19:17:16 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-13 19:17:16 +0300 |
commit | 1cbf748e0c8cf3711bc0cd05691794507cac098f (patch) | |
tree | 88fc1c30b6a055d408218ea94267db30c561b36a | |
parent | 0f42b8aee0bbff27459b52a60d53ac4f51fe9f76 (diff) |
Cycles: Add assert check to shader closure merge function
-rw-r--r-- | intern/cycles/kernel/kernel_shader.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel_shader.h b/intern/cycles/kernel/kernel_shader.h index 1d94de87385..077c86fe38e 100644 --- a/intern/cycles/kernel/kernel_shader.h +++ b/intern/cycles/kernel/kernel_shader.h @@ -480,6 +480,7 @@ ccl_device void shader_merge_closures(ShaderData *sd) } sd->num_closure--; + kernel_assert(sd->num_closure >= 0); j--; } } |