diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-09-26 16:43:48 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-09-26 16:48:29 +0300 |
commit | c525d0e3aee11bcb8f141aaec026c47a643c893c (patch) | |
tree | 3410027cd169f4becb03b4d7565e86a119db294a /source/blender | |
parent | e02ecd599bdc469f70b3383a280fa354008b5630 (diff) |
Object Mode: Fix missing ubo assert with irradiance grid
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/modes/object_mode.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/modes/object_mode.c b/source/blender/draw/modes/object_mode.c index 25c1492795b..05a915185df 100644 --- a/source/blender/draw/modes/object_mode.c +++ b/source/blender/draw/modes/object_mode.c @@ -2732,6 +2732,7 @@ static void DRW_shgroup_lightprobe(OBJECT_Shaders *sh_data, int outline_id = shgroup_theme_id_to_outline_id(theme_id, ob->base_flag); uint cell_count = prb->grid_resolution_x * prb->grid_resolution_y * prb->grid_resolution_z; DRWShadingGroup *grp = DRW_shgroup_create(sh_data->lightprobe_grid, psl->lightprobes); + DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo); DRW_shgroup_uniform_int_copy(grp, "outlineId", outline_id); DRW_shgroup_uniform_vec3_copy(grp, "corner", corner); DRW_shgroup_uniform_vec3_copy(grp, "increment_x", increment[0]); |