From 2996f08f845c4b67b0231d5832668da5ddb2d227 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 3 May 2011 18:29:11 +0000 Subject: Cycles: first batch of windows build fixes, not quite there yet. --- intern/cycles/kernel/svm/svm_texture.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/kernel/svm/svm_texture.h') diff --git a/intern/cycles/kernel/svm/svm_texture.h b/intern/cycles/kernel/svm/svm_texture.h index c5f71c0d5bd..c5ded6d975f 100644 --- a/intern/cycles/kernel/svm/svm_texture.h +++ b/intern/cycles/kernel/svm/svm_texture.h @@ -64,12 +64,12 @@ __device void voronoi(float3 p, NodeDistanceMetric distance_metric, float e, flo for(xx = xi-1; xx <= xi+1; xx++) { for(yy = yi-1; yy <= yi+1; yy++) { for(zz = zi-1; zz <= zi+1; zz++) { - float3 ip = make_float3(xx, yy, zz); + float3 ip = make_float3((float)xx, (float)yy, (float)zz); float3 vp = cellnoise_color(ip); float3 pd = p - (vp + ip); float d = voronoi_distance(distance_metric, pd, e); - vp += make_float3(xx, yy, zz); + vp += make_float3((float)xx, (float)yy, (float)zz); if(d < da[0]) { da[3] = da[2]; -- cgit v1.2.3