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>2017-05-24 06:26:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-05-24 06:27:11 +0300
commitc99e70ae6c7baa7b827514fb5c33462aa74728e3 (patch)
tree55278e58607b42841d3c9b61ebd8764bef6406bd /source/blender
parenteef92770a101951e557ca4d43ad8908bbb1912cd (diff)
Fix leak in particle velocity global ramp
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/draw/intern/draw_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_common.c b/source/blender/draw/intern/draw_common.c
index 69474fb1aed..f8040f28f53 100644
--- a/source/blender/draw/intern/draw_common.c
+++ b/source/blender/draw/intern/draw_common.c
@@ -130,6 +130,10 @@ void DRW_globals_update(void)
ramp.data[2].pos = 1.0f;
colorband_table_RGBA(&ramp, &colors, &col_size);
+
+ if (globals_ramp) {
+ GPU_texture_free(globals_ramp);
+ }
globals_ramp = GPU_texture_create_1D(col_size, colors, NULL);
MEM_freeN(colors);