Cycles: Remove few function arguments needed only for the split kernel
[blender.git] / intern / cycles / kernel / split / kernel_background_buffer_update.h
index e02e55b5f186aa92797c2aeaf1e47ffd26458887..3d12a3dd9933d6799396611c85b68891eb3abd8c 100644 (file)
@@ -71,7 +71,6 @@
  */
 ccl_device char kernel_background_buffer_update(
         KernelGlobals *kg,
-        ShaderData *sd,
         ccl_global float *per_sample_output_buffers,
         ccl_global uint *rng_state,
         ccl_global uint *rng_coop,             /* Required for buffer Update */
@@ -158,7 +157,7 @@ ccl_device char kernel_background_buffer_update(
                if(IS_STATE(ray_state, ray_index, RAY_HIT_BACKGROUND)) {
 #ifdef __BACKGROUND__
                        /* sample background shader */
-                       float3 L_background = indirect_background(kg, state, ray, sd);
+                       float3 L_background = indirect_background(kg, state, ray);
                        path_radiance_accum_background(L, (*throughput), L_background, state->bounce);
 #endif
                        ASSIGN_RAY_STATE(ray_state, ray_index, RAY_UPDATE_BUFFER);