Cleanup: fix compiler warnings.
[blender.git] / intern / cycles / kernel / svm / svm_ao.h
index 15d074780c4353dd504671037a3ac6d7dce13d4f..0744ec1768f2cab6b58c2105607cf6839c709468 100644 (file)
@@ -60,6 +60,8 @@ ccl_device_noinline float svm_ao(KernelGlobals *kg,
                ray.D = D.x*T + D.y*B + D.z*N;
                ray.t = max_dist;
                ray.time = sd->time;
+               ray.dP = sd->dP;
+               ray.dD = differential3_zero();
 
                if(flags & NODE_AO_ONLY_LOCAL) {
                        if(!scene_intersect_local(kg,