* Revert r57203 (len() renaming)
There seems to be a problem with nVidia OpenCL after this and I haven't figured out the real cause yet. 
Better to selectively enable native length() later, after figuring out what's wrong. 

This fixes [#35612].
This commit is contained in:
2013-06-04 17:20:00 +00:00
parent 4a7f37f6ed
commit 9e4914e055
22 changed files with 75 additions and 74 deletions

View File

@@ -27,7 +27,7 @@ __device void svm_node_camera(KernelGlobals *kg, ShaderData *sd, float *stack, u
Transform tfm = kernel_data.cam.worldtocamera;
vector = transform_point(&tfm, sd->P);
zdepth = vector.z;
distance = length(vector);
distance = len(vector);
if (stack_valid(out_vector))
stack_store_float3(stack, out_vector, normalize(vector));