Cycles: Fix compilation error of megakernel on NVidia device

It is more readable to explicitly compare to NULL anyway.
This commit is contained in:
Sergey Sharybin 2017-09-23 17:02:38 +05:00
parent 874062b6ab
commit b460b8fb4a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}