diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-05-24 06:26:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-05-24 06:27:11 +0300 |
commit | c99e70ae6c7baa7b827514fb5c33462aa74728e3 (patch) | |
tree | 55278e58607b42841d3c9b61ebd8764bef6406bd /source/blender | |
parent | eef92770a101951e557ca4d43ad8908bbb1912cd (diff) |
Fix leak in particle velocity global ramp
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_common.c | 4 |
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); |