Fix T74362: Material Preview Assert

When using Material Previews not all uniform blocks were filled. This
patch will add the renderpass_block when drawing the background.

Note that I wasn't able to reproduce the issue on my system, but
according the the backtrace it most likely solves the issue. I let the
reporter test.
This commit is contained in:
Jeroen Bakker 2020-03-02 13:44:25 +01:00
parent 6fa4581d92
commit 493c99078a
Notes: blender-bot 2023-02-14 10:18:56 +01:00
Referenced by issue #74373, Instant crash going to material preview mode
Referenced by issue #74362, Eevee: Lookdev: Blurry backgrounds causes assert on Debug builds
Referenced by issue #74174, Eevee: Crash upon opening material properties
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ void EEVEE_lookdev_cache_init(EEVEE_Data *vedata,
DRW_shgroup_uniform_block(grp, "grid_block", sldata->grid_ubo);
DRW_shgroup_uniform_block(grp, "planar_block", sldata->planar_ubo);
DRW_shgroup_uniform_block(grp, "common_block", sldata->common_ubo);
DRW_shgroup_uniform_block(
grp, "renderpass_block", EEVEE_material_default_render_pass_ubo_get(sldata));
}
DRW_shgroup_call(grp, DRW_cache_fullscreen_quad_get(), NULL);