Cycles: Fix compilation error of megakernel on NVidia device
It is more readable to explicitly compare to NULL anyway.
This commit is contained in:
parent
874062b6ab
commit
b460b8fb4a
|
@ -710,7 +710,7 @@ ccl_device_inline int shader_bsdf_sample(KernelGlobals *kg,
|
|||
float *pdf)
|
||||
{
|
||||
const ShaderClosure *sc = shader_bsdf_pick(sd, &randu);
|
||||
if(!sc) {
|
||||
if(sc == NULL) {
|
||||
*pdf = 0.0f;
|
||||
return LABEL_NONE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue