diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-25 12:11:37 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-12-25 12:11:37 +0300 |
commit | 010f3ee43871974abb99cd6f9e0204b29003fc4e (patch) | |
tree | a233b91be43e0ce82fd6dc94bc3f13c17fc919b4 /intern | |
parent | ee36e75b855ca32c794ef2d1b2be7fe5d7067f55 (diff) |
Cycles: Fix compilation error on non-SSE2 architectures
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernel_compat_cpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
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<typename T> 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<typename T> struct texture { kernel_assert(index >= 0 && index < width); return ((ssei*)data)[index]; } +#endif T *data; int width; |