diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-17 22:54:06 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-17 22:54:06 +0300 |
commit | 00227edf4c1b1e3be1aa0d235a4588a7d3024968 (patch) | |
tree | 055b9ef8ced32ccde2d350eecb640278a6c29a96 /source/blender | |
parent | a661ef42fbdbef2b3713a111853c63007714c4e0 (diff) |
Fix T73748 Overlay: Infront disappearing/glitched while in Xray mode
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/workbench/workbench_forward.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/draw/engines/workbench/workbench_forward.c b/source/blender/draw/engines/workbench/workbench_forward.c index 8d78373a057..b8e9f9b8428 100644 --- a/source/blender/draw/engines/workbench/workbench_forward.c +++ b/source/blender/draw/engines/workbench/workbench_forward.c @@ -779,6 +779,12 @@ void workbench_forward_draw_scene(WORKBENCH_Data *vedata) WORKBENCH_PrivateData *wpd = stl->g_data; DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); + if (dfbl->in_front_fb) { + /* TODO(fclem) This clear should be done in a global place. */ + GPU_framebuffer_bind(dfbl->in_front_fb); + GPU_framebuffer_clear_depth(dfbl->in_front_fb, 1.0f); + } + if (workbench_is_taa_enabled(wpd)) { workbench_taa_draw_scene_start(vedata); } |