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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-21 22:20:02 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-21 22:20:02 +0400
commit8dd0854ab161dbad5539c8cfbe669d2e1f18d9cd (patch)
tree7a11193e043f2629e97d41a053f093a3f9ec4712 /source/blender/gpu/intern/gpu_material.c
parentc57b398ff9a93cc9d12011844efdc68ef0b5fb62 (diff)
parentdd21def25d2ddfa6ca04a7d11481a84b76e2c0ab (diff)
svn merge ^/trunk/blender -r50064:50096
Diffstat (limited to 'source/blender/gpu/intern/gpu_material.c')
-rw-r--r--source/blender/gpu/intern/gpu_material.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index 6ceb1faa80d..e9a40d2b995 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -449,6 +449,7 @@ static GPUNodeLink *lamp_get_visibility(GPUMaterial *mat, GPULamp *lamp, GPUNode
float *array;
int size;
+ curvemapping_initialize(lamp->curfalloff);
curvemapping_table_RGBA(lamp->curfalloff, &array, &size);
GPU_link(mat, "lamp_falloff_curve", GPU_dynamic_uniform(&lamp->dist, GPU_DYNAMIC_LAMP_DISTANCE, lamp->ob), GPU_texture(size, array), *dist, &visifac);
}