forked from bartvdbraak/blender
Cycles: Fix uninitialized variable issue after recent changes
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user