Fix cycles OSL volume render crash with multiple closures.

This commit is contained in:
Brecht Van Lommel 2014-01-03 18:57:07 +01:00
parent bb0a0315e2
commit ca7060662d
1 changed files with 1 additions and 1 deletions

View File

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