forked from bartvdbraak/blender
Cycles: Fix for fix (tm)
Sorry guys, for some reason read the expression back-to-front and did wrong fix :S
This commit is contained in:
parent
5c4113a3e4
commit
f523fb43f9
@ -381,7 +381,7 @@ ccl_device_inline float3 bvh_clamp_direction(float3 dir)
|
||||
const ssef mask = _mm_cmpgt_ps(fabs(dir), oopes);
|
||||
const ssef signdir = signmsk(dir.m128) | oopes;
|
||||
# ifndef __KERNEL_AVX__
|
||||
ssef res = mask & signdir;
|
||||
ssef res = mask & ssef(dir);
|
||||
res = _mm_or_ps(res,_mm_andnot_ps(mask, signdir));
|
||||
# else
|
||||
ssef res = _mm_blendv_ps(signdir, dir, mask);
|
||||
|
Loading…
Reference in New Issue
Block a user