diff --git a/src/bsdfs/blendbsdf.cpp b/src/bsdfs/blendbsdf.cpp index e98264d6..db524cfa 100644 --- a/src/bsdfs/blendbsdf.cpp +++ b/src/bsdfs/blendbsdf.cpp @@ -79,6 +79,8 @@ public: m_weight = static_cast(manager->getInstance(stream)); m_bsdfs.push_back(static_cast(manager->getInstance(stream))); m_bsdfs.push_back(static_cast(manager->getInstance(stream))); + m_bsdfs[0]->incRef(); + m_bsdfs[1]->incRef(); configure(); }