diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-20 19:01:42 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-22 14:29:04 +0300 |
commit | 45c085a1718eee2b5616dd2af7f37749f79ab593 (patch) | |
tree | 55bfec4b2bfd658019ebe0b0d65dfdcb01901251 /source/blender/draw/engines/eevee/eevee_materials.c | |
parent | 88a725eff8f42bcaa5921f35b988fa07d0e619e7 (diff) |
DRW: Add DRWView to improve different view handling
This will have multiple benefit.
TODO detail benefits (culling, more explicit, handling of clipping planes)
For now the view usage is wrapped to make changes needed more progressive.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_materials.c')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_materials.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index 44e9b98e8e2..6e0bd7f31d3 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -1130,11 +1130,10 @@ void EEVEE_materials_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata) #define ADD_SHGROUP_CALL(shgrp, ob, geom, oedata) \ do { \ if (oedata) { \ - DRW_shgroup_call_object_with_callback( \ - shgrp, geom, ob, EEVEE_lightprobes_obj_visibility_cb, oedata); \ + DRW_shgroup_call_object_with_callback(shgrp, geom, ob, oedata); \ } \ else { \ - DRW_shgroup_call_object_ex(shgrp, geom, ob, false); \ + DRW_shgroup_call_object(shgrp, geom, ob); \ } \ } while (0) |