diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-10-16 20:28:10 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-10-16 21:16:53 +0300 |
commit | 7e78fbf2dedfd70f8c9971ee1412183abc5a9ca7 (patch) | |
tree | 06d89352ff0e3c30e89e6f5b3014a978acbe8bc2 /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | 131ac2ec82b9e810dd6e0153009a71276b6d6f13 (diff) |
Fix assert and memleak in recent Skin Root Display patch
Caused by 4ddf3215a7df
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 49db8bd9765..ca185fa7d7d 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -1328,7 +1328,7 @@ void DRW_mesh_batch_cache_create_requested( } if (DRW_batch_requested(cache->batch.edit_skin_roots, GPU_PRIM_LINES)) { DRW_vbo_request(cache->batch.edit_skin_roots, &mbufcache->vbo.skin_roots); - /* HACK(fclem): This is a workaround the deferred batch init + /* HACK(fclem): This is to workaround the deferred batch init * that prevent drawing using DRW_shgroup_call_instances_with_attribs. * So we instead create the whole instancing batch here. * Note that we use GPU_PRIM_LINES instead of expected GPU_PRIM_LINE_STRIP |