DRW: Fix animated material not refreshing

This introduces a garbage collection system similar to gpu_texture.
This commit is contained in:
Dalai Felinto
2018-06-08 16:11:34 +02:00
parent 0417f205f5
commit 9d59d20957
5 changed files with 69 additions and 21 deletions

View File

@@ -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();