Cycles: Don't allocate Extra if BSDF allocation failed
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 12 Sep 2018 10:21:04 +0000 (12:21 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 12 Sep 2018 10:28:55 +0000 (12:28 +0200)
commitaa844ad676d2e9d4f72f773fde64712c8a794e5e
treecb0d6b71b07c4ecc3d22674a74daa19d642b50fc
parentf088bbae6af2224b49103d8cba5129f92796ffa6
Cycles: Don't allocate Extra if BSDF allocation failed

Failed as in did not allocate due to possibly weight cutoff.
Tryign to allocated Extra storage for closure in such situation
will consfuse Cycles and cause crashes later one due to obscure
values in ShaderData.
intern/cycles/kernel/svm/svm_closure.h