Cycles :
[blender.git] / intern / cycles / kernel / kernel_camera.h
index 8bd09247339f7c4242f78bd96d55cb0184fb44fd..a23586a53a4d7bbdc3224ab17f78cd3bbc93639a 100644 (file)
@@ -187,7 +187,7 @@ __device void camera_sample_panorama(KernelGlobals *kg, float raster_x, float ra
        }
 
        /* indicates ray should not receive any light, outside of the lens */
-       if(len_squared(ray->D) == 0.0f) {
+       if(is_zero(ray->D)) {   
                ray->t = 0.0f;
                return;
        }