diff options
author | Antonioya <blendergit@gmail.com> | 2018-07-31 14:21:04 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-07-31 14:22:41 +0300 |
commit | 7a91ae110397c29a5bb63ed0489d67acdc11ecb4 (patch) | |
tree | db296eb5fa3a582c904a7b169f2e8eb601dfbf7f /source/blender | |
parent | 8dcddbc09129140e47855b4a1fe85b3684636586 (diff) |
Fix memory leak in DRW_cache_gpencil_axes_get
The Batch was created using old function without GPU_BATCH_OWNS_VBO and the batch was not removed from memory
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index 8ef5d600413..c3fa9f5c1aa 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -605,7 +605,7 @@ GPUBatch *DRW_cache_gpencil_axes_get(void) GPU_vertbuf_attr_set(vbo, pos_id, i + 6, verts[indices[i]]); } - SHC.drw_gpencil_axes = GPU_batch_create(GPU_PRIM_LINES, vbo, NULL); + SHC.drw_gpencil_axes = GPU_batch_create_ex(GPU_PRIM_LINES, vbo, NULL, GPU_BATCH_OWNS_VBO); } return SHC.drw_gpencil_axes; } |