Blender Git Commit Log

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)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021