forked from bartvdbraak/blender
Cycles: Fix compilation error on non-SSE2 architectures
This commit is contained in:
parent
ee36e75b85
commit
010f3ee438
@ -52,6 +52,7 @@ template<typename T> struct texture {
|
|||||||
return data[index];
|
return data[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __KERNEL_SSE2__
|
||||||
ccl_always_inline ssef fetch_ssef(int index)
|
ccl_always_inline ssef fetch_ssef(int index)
|
||||||
{
|
{
|
||||||
kernel_assert(index >= 0 && index < width);
|
kernel_assert(index >= 0 && index < width);
|
||||||
@ -63,6 +64,7 @@ template<typename T> struct texture {
|
|||||||
kernel_assert(index >= 0 && index < width);
|
kernel_assert(index >= 0 && index < width);
|
||||||
return ((ssei*)data)[index];
|
return ((ssei*)data)[index];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
T *data;
|
T *data;
|
||||||
int width;
|
int width;
|
||||||
|
Loading…
Reference in New Issue
Block a user