Cycles: Fix wrong sample all direct/indirect settings on sm_50 and higher

Seems to be some compiler fault which leads to a wrong flag being used,
making it so wrong number of samples is used for the background.

This should in theory fix issue reported in T47213.
This commit is contained in:
Sergey Sharybin 2016-02-18 16:25:51 +01:00
parent 608ee3e073
commit da81227e54
Notes: blender-bot 2023-02-14 08:11:21 +01:00
Referenced by issue #49388, Mesh Deform bind locks Mesh Deform target object
Referenced by issue #47634, Node "Vector Transform" does not work on spot
Referenced by issue #47557, Several issues with constraints in a negative scaled armature
Referenced by issue #47559, Crash when scrubbing in time on a OpenVDB Smoke
Referenced by issue #47510, GPU Smoke crashes NVIDIA Driver
Referenced by issue #47506, Crash when right click (selection) - intel driver
Referenced by issue #47507, Blender crashes when OpenSubdiv is enabled upon deselect+reselect of subdivided object
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ CCL_NAMESPACE_BEGIN
#if defined(__BRANCHED_PATH__) || defined(__SUBSURFACE__)
/* branched path tracing: connect path directly to position on one or more lights and add it to L */
ccl_device void kernel_branched_path_surface_connect_light(KernelGlobals *kg, RNG *rng,
ccl_device_noinline void kernel_branched_path_surface_connect_light(KernelGlobals *kg, RNG *rng,
ShaderData *sd, PathState *state, float3 throughput, float num_samples_adjust, PathRadiance *L, bool sample_all_lights)
{
#ifdef __EMISSION__