Cycles: Fix uninitialized variable issue after recent changes

This commit is contained in:
Sergey Sharybin 2016-12-14 17:30:50 +01:00
parent 4f03d3290c
commit 525673b37b

@ -613,6 +613,9 @@ ccl_device int bsdf_microfacet_ggx_sample(KernelGlobals *kg, const ShaderClosure
}
}
}
else {
label = (m_refractive) ? LABEL_TRANSMIT|LABEL_GLOSSY : LABEL_REFLECT|LABEL_GLOSSY;
}
return label;
}
@ -975,6 +978,9 @@ ccl_device int bsdf_microfacet_beckmann_sample(KernelGlobals *kg, const ShaderCl
}
}
}
else {
label = (m_refractive) ? LABEL_TRANSMIT|LABEL_GLOSSY : LABEL_REFLECT|LABEL_GLOSSY;
}
return label;
}