diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-03-02 15:44:25 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-02 15:47:52 +0300 |
commit | 493c99078a8fbd8807f137401c11d401b85ba0e7 (patch) | |
tree | 9fcd373318be7918399681b332069434d6ec054c /source | |
parent | 6fa4581d92ef8e2dd47069e47135fd1005072127 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_lookdev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lookdev.c b/source/blender/draw/engines/eevee/eevee_lookdev.c index d39d2a61657..b5ec5ce21a9 100644 --- a/source/blender/draw/engines/eevee/eevee_lookdev.c +++ b/source/blender/draw/engines/eevee/eevee_lookdev.c @@ -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); |