Cycles: avoid using float3 in kernel constant memory, just so we're sure alignment

is working compatible between cpu and gpu.
This commit is contained in:
Brecht Van Lommel
2011-12-20 12:25:45 +00:00
parent 72d2d05770
commit 40259cfe7b
5 changed files with 18 additions and 20 deletions

View File

@@ -150,8 +150,8 @@ void Camera::device_update(Device *device, DeviceScene *dscene)
kcam->ortho = ortho;
/* store differentials */
kcam->dx = dx;
kcam->dy = dy;
kcam->dx = float3_to_float4(dx);
kcam->dy = float3_to_float4(dy);
/* clipping */
kcam->nearclip = nearclip;