diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-02-22 14:19:10 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-02-22 14:19:10 +0300 |
commit | e05d3d5d9b0fff6efce57f015129892c29ab067e (patch) | |
tree | 28b6ad104e2fdc44d8d8d857238e88ebf28decf0 /source/blender | |
parent | 4f2375b82f721cc8157bd91cd4ee5b56d6e98985 (diff) |
Clay Engine: Fix Memory Leak.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 015d364fc69..f671cbc85e2 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -457,7 +457,11 @@ void DRW_shgroup_free(struct DRWShadingGroup *shgroup) BLI_freelistN(&shgroup->calls); BLI_freelistN(&shgroup->interface->uniforms); BLI_freelistN(&shgroup->interface->attribs); - /* TODO free instance vbo */ + + if (shgroup->interface->instance_vbo) { + glDeleteBuffers(1, &shgroup->interface->instance_vbo); + } + MEM_freeN(shgroup->interface); if (shgroup->batch_geom) { |