Commit: 7aed91a88007dea378a7b12a3c29345fd31d2d96 Author: Lukas Toenne Date: Tue Dec 18 13:20:12 2018 +0000 Branches: hair_object https://developer.blender.org/rB7aed91a88007dea378a7b12a3c29345fd31d2d96
Fix memleaks from new hair drawing index buffer/texture. =================================================================== M source/blender/draw/intern/draw_hair.c =================================================================== diff --git a/source/blender/draw/intern/draw_hair.c b/source/blender/draw/intern/draw_hair.c index 9c6b057e1cb..2f58e301416 100644 --- a/source/blender/draw/intern/draw_hair.c +++ b/source/blender/draw/intern/draw_hair.c @@ -113,7 +113,9 @@ void particle_batch_cache_clear_hair(ParticleHairCache *hair_cache) } for (int i = 0; i < MAX_HAIR_SUBDIV; ++i) { GPU_VERTBUF_DISCARD_SAFE(hair_cache->final[i].proc_point_buf); + GPU_VERTBUF_DISCARD_SAFE(hair_cache->final[i].proc_hair_index_buf); DRW_TEXTURE_FREE_SAFE(hair_cache->final[i].proc_tex); + DRW_TEXTURE_FREE_SAFE(hair_cache->final[i].hair_index_tex); for (int j = 0; j < MAX_THICKRES; ++j) { GPU_BATCH_DISCARD_SAFE(hair_cache->final[i].proc_hairs[j]); } _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs