Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-06-08 17:11:34 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-06-08 17:29:33 +0300
commit9d59d20957b5fe042f4132d9ed23e9ac25cb4ce0 (patch)
tree2cea4a7b6a9217e4474ae08778d833581483e433 /source/blender/blenkernel/intern/material.c
parent0417f205f564bb883181c27db86d5639a97b0121 (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.c1
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);
}