diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-03 21:57:07 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2014-01-03 21:57:38 +0400 |
commit | ca7060662d560a86cc5d08be881cba2a79800c2a (patch) | |
tree | 341ce60b219e6228f6347d9b28350ced41e48795 /intern/cycles/kernel/osl/osl_closures.h | |
parent | bb0a0315e28216e64190b3c6e5657438a28ad56d (diff) |
Fix cycles OSL volume render crash with multiple closures.
Diffstat (limited to 'intern/cycles/kernel/osl/osl_closures.h')
-rw-r--r-- | intern/cycles/kernel/osl/osl_closures.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/osl/osl_closures.h b/intern/cycles/kernel/osl/osl_closures.h index f2f79f80fdf..218cf1c19cc 100644 --- a/intern/cycles/kernel/osl/osl_closures.h +++ b/intern/cycles/kernel/osl/osl_closures.h @@ -197,7 +197,7 @@ public: CVolumeClosure(int scattering) : CClosurePrimitive(Volume), m_scattering_label(scattering), m_shaderdata_flag(0) - { memset(&sc, 0, sizeof(sc)); } + {} ~CVolumeClosure() { } int scattering() const { return m_scattering_label; } |