Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/kernel/kernel_compat_cpu.h')
-rw-r--r--intern/cycles/kernel/kernel_compat_cpu.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h
index b7df7f86bf6..9972a63bfbb 100644
--- a/intern/cycles/kernel/kernel_compat_cpu.h
+++ b/intern/cycles/kernel/kernel_compat_cpu.h
@@ -57,19 +57,6 @@ template<typename T> struct texture {
}
#endif
- float lookup(float x, int offset, int size)
- {
- kernel_assert(size == width);
-
- x = clamp(x, 0.0f, 1.0f)*width;
-
- int index = min((int)x, width-1);
- int nindex = min(index+1, width-1);
- float t = x - index;
-
- return (1.0f - t)*data[index + offset] + t*data[nindex + offset];
- }
-
T *data;
int width;
};