From 9d59d20957b5fe042f4132d9ed23e9ac25cb4ce0 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 8 Jun 2018 16:11:34 +0200 Subject: DRW: Fix animated material not refreshing This introduces a garbage collection system similar to gpu_texture. --- source/blender/gpu/GPU_material.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/gpu/GPU_material.h') diff --git a/source/blender/gpu/GPU_material.h b/source/blender/gpu/GPU_material.h index 2e102838b3d..0805cc25d04 100644 --- a/source/blender/gpu/GPU_material.h +++ b/source/blender/gpu/GPU_material.h @@ -253,6 +253,11 @@ void GPU_material_free(struct ListBase *gpumaterial); void GPU_materials_free(void); +void GPU_material_orphans_init(void); +void GPU_material_orphans_exit(void); +/* This has to be called from a thread with an ogl context bound. */ +void GPU_material_orphans_delete(void); + struct Scene *GPU_material_scene(GPUMaterial *material); GPUMatType GPU_Material_get_type(GPUMaterial *material); struct GPUPass *GPU_material_get_pass(GPUMaterial *material); -- cgit v1.2.3