diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 14:55:07 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-10-07 17:18:12 +0300 |
commit | e3a0e57542ff153575e1d0de1dc18388406ca6a8 (patch) | |
tree | dc4b209b2a00c412a1426b358f5620fe1b227d4c /GNUmakefile | |
parent | 0796807720882731cdb70be144aa182e9b0b9ee5 (diff) |
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.
Diffstat (limited to 'GNUmakefile')
0 files changed, 0 insertions, 0 deletions