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

@@ -273,7 +273,6 @@ static void sky_texture_precompute(KernelSunSky *ksunsky, float3 dir, float turb
ksunsky->theta = theta;
ksunsky->phi = phi;
ksunsky->dir = dir;
float theta2 = theta*theta;
float theta3 = theta*theta*theta;