Fix cycles CUDA error with world multiple importance sampling, after recent OpenCL...
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 15 May 2013 19:02:30 +0000 (19:02 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 15 May 2013 19:02:30 +0000 (19:02 +0000)
intern/cycles/kernel/kernel_light.h

index c07f1ffe5a3d12285f66110c79566d4b32c96ba1..d4d78e413d21b1e7baf2b86d0ccc3bae174bff65 100644 (file)
@@ -430,7 +430,8 @@ __device void object_transform_light_sample(KernelGlobals *kg, LightSample *ls,
        /* instance transform */
        if(object >= 0) {
 #ifdef __OBJECT_MOTION__
-               Transform tfm = object_fetch_transform_motion_test(kg, object, time, NULL);
+               Transform itfm;
+               Transform tfm = object_fetch_transform_motion_test(kg, object, time, &itfm);
 #else
                Transform tfm = object_fetch_transform(kg, object, OBJECT_TRANSFORM);
 #endif