diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-04-18 18:25:04 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-04-19 16:19:43 +0300 |
commit | 973e64cf9cb23b91e329ebac9a0f4c69647edf20 (patch) | |
tree | 8d9b1ce47b8d7d646f65e3b3c8040bc5b72ec2bb /source/blender/makesrna | |
parent | 0ebf43b4d0a955469a8b7544089c07370781cf88 (diff) |
DRW: Make shaded batch validation more correct
This is in order to support garbage collection of unused Custom data layer uploaded to the GPU.
Actual Garbage Collection is not added by this commit.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 984536b6907..ce6a2af8c8f 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -914,17 +914,6 @@ static void rna_3DViewShading_type_update(Main *bmain, Scene *scene, PointerRNA return; } - for (Material *ma = bmain->materials.first; ma; ma = ma->id.next) { - /* XXX Dependency graph does not support CD mask tracking, - * so we trigger materials shading for until it's properly supported. - * This is to ensure material batches are all recreated when switching - * shading type. In the future DEG should replace this and just tag - * the meshes itself. - * This hack just tag BKE_MESH_BATCH_DIRTY_SHADING for every mesh that - * have a material. (see T55059) */ - DEG_id_tag_update(&ma->id, ID_RECALC_SHADING); - } - View3DShading *shading = ptr->data; if (shading->type == OB_MATERIAL || (shading->type == OB_RENDER && |