From 64c2d5e90e7ec80eb693c814787d8eee393c3bab Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 31 May 2011 11:31:00 +0000 Subject: Cycles: more opencl fixes. --- intern/cycles/util/util_transform.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'intern/cycles/util/util_transform.h') diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index e2b022dc478..e904674a981 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -34,16 +34,16 @@ typedef struct Transform { __device_inline float3 transform(const Transform *t, const float3 a) { - float4 b = {a.x, a.y, a.z, 1.0f}; - float3 c = {dot(t->x, b), dot(t->y, b), dot(t->z, b)}; + float4 b = make_float4(a.x, a.y, a.z, 1.0f); + float3 c = make_float3(dot(t->x, b), dot(t->y, b), dot(t->z, b)); return c/dot(t->w, b); } __device_inline float3 transform_direction(const Transform *t, const float3 a) { - float4 b = {a.x, a.y, a.z, 0.0f}; - float3 c = {dot(t->x, b), dot(t->y, b), dot(t->z, b)}; + float4 b = make_float4(a.x, a.y, a.z, 0.0f); + float3 c = make_float3(dot(t->x, b), dot(t->y, b), dot(t->z, b)); return c; } -- cgit v1.2.3