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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-02-02 15:34:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-02-02 15:35:57 +0300
commit5030daf2a8a31b1a74740d8bc17389c06f246636 (patch)
tree4f3ba01610f2080cef69ec2492668b5a6a6a2fc7 /intern/cycles
parent31263192bbb97e97d7e9674c7d90fa209718be4b (diff)
Cycles: Remove redundant calculation of w in recent cubic commit
Was rather harmless since compiler will optimize it out, but nice to get rid of this anyway.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/kernel_compat_cpu.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h
index cef94d1a2bc..992d2876d6f 100644
--- a/intern/cycles/kernel/kernel_compat_cpu.h
+++ b/intern/cycles/kernel/kernel_compat_cpu.h
@@ -193,7 +193,7 @@ template<typename T> struct texture_image {
width * iy,
width * niy,
width * nniy};
- float u[4], v[4], w[4];
+ float u[4], v[4];
/* Some helper macro to keep code reasonable size,
* let compiler to inline all the matrix multiplications.
*/
@@ -206,7 +206,6 @@ template<typename T> struct texture_image {
SET_CUBIC_SPLINE_WEIGHTS(u, tx);
SET_CUBIC_SPLINE_WEIGHTS(v, ty);
- SET_CUBIC_SPLINE_WEIGHTS(w, 0.0f);
/* Actual interpolation. */
return TERM(0) + TERM(1) + TERM(2) + TERM(3);