diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-23 15:02:38 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-09-23 15:03:02 +0300 |
commit | b460b8fb4a3fe11e6accecdd2d1f6e32d208a09f (patch) | |
tree | ce3ae0604adb34923d77cef776ce49d12ba0f024 /intern/cycles | |
parent | 874062b6abe601f0c3e10ae1d9254d1c0c9ad5a9 (diff) |
Cycles: Fix compilation error of megakernel on NVidia device
It is more readable to explicitly compare to NULL anyway.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/kernel_shader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_shader.h b/intern/cycles/kernel/kernel_shader.h index bb3add5d7ca..eeb4eb0097f 100644 --- a/intern/cycles/kernel/kernel_shader.h +++ b/intern/cycles/kernel/kernel_shader.h @@ -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; } |