Blender Git Loki

Git Commits -> Revision 7f34363

Revision 7f34363 by Sergey Sharybin (master)
May 12, 2021, 07:41 (GMT)
Cycles X: Fix possible use of uninitialized ShaderClosure

It is possible that BSDF allocation will advance pointer in the
allocation "pool" but will return null pointer if the weight is
too small.

One artist-measurable issue this change fixes is random issues
with denoising: normal pass for denoising could have accessed
non-initialized normal of a closure.

Differential Revision: https://developer.blender.org/D11230

Commit Details:

Full Hash: 7f3436363388af9e9fe5c8578dee8997c078bb16
Parent Commit: 0e3475a
Lines Changed: +30, -14

1 Modified Path:

/intern/cycles/kernel/closure/alloc.h (+30, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021