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/gpu/intern/gpu_init_exit.c
parent0417f205f564bb883181c27db86d5639a97b0121 (diff)
DRW: Fix animated material not refreshing
This introduces a garbage collection system similar to gpu_texture.
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r--source/blender/gpu/intern/gpu_init_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c
index 0d624bbb15c..92ad9d81b6c 100644
--- a/source/blender/gpu/intern/gpu_init_exit.c
+++ b/source/blender/gpu/intern/gpu_init_exit.c
@@ -58,6 +58,7 @@ void GPU_init(void)
gpu_extensions_init(); /* must come first */
GPU_texture_orphans_init();
+ GPU_material_orphans_init();
gpu_codegen_init();
if (G.debug & G_DEBUG_GPU)
@@ -83,6 +84,7 @@ void GPU_exit(void)
gpu_batch_exit();
GPU_texture_orphans_exit();
+ GPU_material_orphans_exit();
if (G.debug & G_DEBUG_GPU)
gpu_debug_exit();