diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-04-17 16:32:59 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-04-17 16:33:06 +0300 |
commit | b229c879c1d422b9fe710ca3e163be191cdabab3 (patch) | |
tree | 22cc7a9e434674bf2a4a177dde207ba6cf56fff0 /source/blender/draw | |
parent | 1eea3e4d6b0393efe7752e92e649c52f9de05d1d (diff) |
Eevee: Render: Fix assert with framebuffer not being bound before read.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_render.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_render.c b/source/blender/draw/engines/eevee/eevee_render.c index 130999adb39..08dcb626964 100644 --- a/source/blender/draw/engines/eevee/eevee_render.c +++ b/source/blender/draw/engines/eevee/eevee_render.c @@ -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), |