Eevee: Render: Fix assert with framebuffer not being bound before read.

This commit is contained in:
Clément Foucault 2018-04-17 15:32:59 +02:00
parent 1eea3e4d6b
commit b229c879c1
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ static void eevee_render_result_z(
if ((view_layer->passflag & SCE_PASS_Z) != 0) {
RenderPass *rp = RE_pass_find_by_name(rl, RE_PASSNAME_Z, viewname);
GPU_framebuffer_bind(vedata->fbl->main_fb);
GPU_framebuffer_read_depth(vedata->fbl->main_fb,
rect->xmin, rect->ymin,
BLI_rcti_size_x(rect), BLI_rcti_size_y(rect),