Blender Git Loki

Git Commits -> Revision e3a0e57

Revision e3a0e57 by Jeroen Bakker (master)
October 7, 2020, 14:18 (GMT)
CleanUp: DrawManager Balanced alloc/free of surface_per_mat cache

The alloc was done in the init, but the free was done in the discard.
As discarding can happen more often there were some unneeded if
statements to work around use after free.

This patch moves the free to the `mesh_batch_cache_clear` and removes
the if statements to check for use after free.

Commit Details:

Full Hash: e3a0e57542ff153575e1d0de1dc18388406ca6a8
Parent Commit: 0796807
Lines Changed: +6, -14

1 Modified Path:

/source/blender/draw/intern/draw_cache_impl_mesh.c (+6, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021