diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-06-08 17:11:34 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-06-08 17:29:33 +0300 |
commit | 9d59d20957b5fe042f4132d9ed23e9ac25cb4ce0 (patch) | |
tree | 2cea4a7b6a9217e4474ae08778d833581483e433 /source/blender/blenkernel/intern/material.c | |
parent | 0417f205f564bb883181c27db86d5639a97b0121 (diff) |
DRW: Fix animated material not refreshing
This introduces a garbage collection system similar to gpu_texture.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 373cb4e4f06..1ea2f170922 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -1315,4 +1315,5 @@ void paste_matcopybuf(Main *bmain, Material *ma) void BKE_material_eval(struct Depsgraph *depsgraph, Material *material) { DEG_debug_print_eval(depsgraph, __func__, material->id.name, material); + GPU_material_free(&material->gpumaterial); } |