[Bf-blender-cvs] [90b94678612] master: Cycles: fix AO approximation for split kernel
Hristo Gueorguiev
noreply at git.blender.org
Thu May 11 11:58:31 CEST 2017
Commit: 90b9467861261adfbe56bf20b3547b42c1bc4e50
Author: Hristo Gueorguiev
Date: Thu May 11 11:57:12 2017 +0200
Branches: master
https://developer.blender.org/rB90b9467861261adfbe56bf20b3547b42c1bc4e50
Cycles: fix AO approximation for split kernel
===================================================================
M intern/cycles/kernel/split/kernel_indirect_background.h
===================================================================
diff --git a/intern/cycles/kernel/split/kernel_indirect_background.h b/intern/cycles/kernel/split/kernel_indirect_background.h
index 6fbc888e358..f0ebb90f60a 100644
--- a/intern/cycles/kernel/split/kernel_indirect_background.h
+++ b/intern/cycles/kernel/split/kernel_indirect_background.h
@@ -23,7 +23,7 @@ ccl_device void kernel_indirect_background(KernelGlobals *kg)
int thread_index = ccl_global_id(1) * ccl_global_size(0) + ccl_global_id(0);
int ray_index;
- if(kernel_data.integrator.ao_bounces) {
+ if(kernel_data.integrator.ao_bounces != INT_MAX) {
ray_index = get_ray_index(kg, thread_index,
QUEUE_ACTIVE_AND_REGENERATED_RAYS,
kernel_split_state.queue_data,
More information about the Bf-blender-cvs
mailing list