Fix an issue with the new cycles lamp MIS option not working correct with

multiple lamps.
This commit is contained in:
Brecht Van Lommel 2013-02-01 18:54:24 +00:00
parent 4838a2c75a
commit 736d7810a0

@ -312,6 +312,9 @@ __device bool lamp_light_eval(KernelGlobals *kg, int lamp, float3 P, float3 D, f
ls->prim = ~0;
ls->lamp = lamp;
if(!(ls->shader & SHADER_USE_MIS))
return false;
if(type == LIGHT_DISTANT) {
/* distant light */
float radius = data1.y;