From b05e7ea7197ca4b66f74359a8e43e6a0b419de2d Mon Sep 17 00:00:00 2001 From: Patrick Mours Date: Wed, 21 Aug 2019 12:04:40 +0200 Subject: Cycles: fixes for building kernel without certain features Ref D5363 --- intern/cycles/kernel/kernel_accumulate.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/kernel/kernel_accumulate.h') diff --git a/intern/cycles/kernel/kernel_accumulate.h b/intern/cycles/kernel/kernel_accumulate.h index b9d723222a1..46a51f5a560 100644 --- a/intern/cycles/kernel/kernel_accumulate.h +++ b/intern/cycles/kernel/kernel_accumulate.h @@ -319,10 +319,12 @@ ccl_device_inline void path_radiance_accum_ao(PathRadiance *L, float3 bsdf, float3 ao) { +#ifdef __PASSES__ /* Store AO pass. */ if (L->use_light_pass && state->bounce == 0) { L->ao += alpha * throughput * ao; } +#endif #ifdef __SHADOW_TRICKS__ /* For shadow catcher, accumulate ratio. */ -- cgit v1.2.3