Fix T73748 Overlay: Infront disappearing/glitched while in Xray mode
This commit is contained in:
parent
a661ef42fb
commit
00227edf4c
Notes:
blender-bot
2023-02-14 06:00:49 +01:00
Referenced by issue #73939, fresh 2.83 compilation, immediate crash Referenced by issue #73748, Viewport display issue, Infront disappearing/glitched while in Xray mode
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue