star-sf

Set of surface and volume scattering functions
git clone git://git.meso-star.fr/star-sf.git
Log | Files | Refs | README | LICENSE

commit 61593b7e28cd7216348746b849a0ae4d60df63ba
parent be1dcfd4054ae0060e8e10268ae274a90dc65f77
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  7 Sep 2016 14:32:38 +0200

Fix an invalid memory write

Diffstat:
Msrc/ssf_specular_reflection.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ssf_specular_reflection.c b/src/ssf_specular_reflection.c @@ -70,7 +70,7 @@ ssf_specular_reflection_create ((struct specular_reflection*)bxdf->data)->reflectivity = 1.0; exit: - *out_bxdf = bxdf; + if(out_bxdf) *out_bxdf = bxdf; return res; error: if(bxdf) {