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/gpu/GPU_material.h | |
parent | 0417f205f564bb883181c27db86d5639a97b0121 (diff) |
DRW: Fix animated material not refreshing
This introduces a garbage collection system similar to gpu_texture.
Diffstat (limited to 'source/blender/gpu/GPU_material.h')
-rw-r--r-- | source/blender/gpu/GPU_material.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |