diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2020-12-30 17:25:13 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2020-12-30 19:03:06 +0300 |
commit | 2be2165dd6478eff51291e2c173bd91f5d720c6d (patch) | |
tree | 14b35585535dadb33be5f493541f7ede3ac053a0 /source | |
parent | f910342c8d1f09a140d036b2d3583933cc126593 (diff) |
Cleanup: Use LISTBASE_FOREACH macro
Differential Revision: https://developer.blender.org/D9960
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_material.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 3f22424c7c9..675036b31c3 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -803,14 +803,11 @@ void GPU_material_compile(GPUMaterial *mat) void GPU_materials_free(Main *bmain) { - Material *ma; - World *wo; - - for (ma = bmain->materials.first; ma; ma = ma->id.next) { + LISTBASE_FOREACH (Material *, ma, &bmain->materials) { GPU_material_free(&ma->gpumaterial); } - for (wo = bmain->worlds.first; wo; wo = wo->id.next) { + LISTBASE_FOREACH (World *, wo, &bmain->worlds) { GPU_material_free(&wo->gpumaterial); } |