diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-12-20 16:25:45 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2011-12-20 16:25:45 +0400 |
commit | 40259cfe7bf8ab3fa844d87b61096562c9ea2e42 (patch) | |
tree | a241f884d68b517706dac392ca861bd1a9c3f282 /intern/cycles/render/camera.cpp | |
parent | 72d2d05770a721986986c137a5cbc36cb796062f (diff) |
Cycles: avoid using float3 in kernel constant memory, just so we're sure alignment
is working compatible between cpu and gpu.
Diffstat (limited to 'intern/cycles/render/camera.cpp')
-rw-r--r-- | intern/cycles/render/camera.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/intern/cycles/render/camera.cpp b/intern/cycles/render/camera.cpp index d5fca87491d..a83ae81844c 100644 --- a/intern/cycles/render/camera.cpp +++ b/intern/cycles/render/camera.cpp @@ -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; |