From 010f3ee43871974abb99cd6f9e0204b29003fc4e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 25 Dec 2014 14:11:37 +0500 Subject: Cycles: Fix compilation error on non-SSE2 architectures --- intern/cycles/kernel/kernel_compat_cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/kernel/kernel_compat_cpu.h') diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h index b475e11bbab..a7a2fb8f216 100644 --- a/intern/cycles/kernel/kernel_compat_cpu.h +++ b/intern/cycles/kernel/kernel_compat_cpu.h @@ -52,6 +52,7 @@ template struct texture { return data[index]; } +#ifdef __KERNEL_SSE2__ ccl_always_inline ssef fetch_ssef(int index) { kernel_assert(index >= 0 && index < width); @@ -63,6 +64,7 @@ template struct texture { kernel_assert(index >= 0 && index < width); return ((ssei*)data)[index]; } +#endif T *data; int width; -- cgit v1.2.3