diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-03-27 22:11:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-03-27 22:11:43 +0300 |
commit | d85026db15ab2f638d87951211ebc2b40916199e (patch) | |
tree | 30e9e471e682fdb842ef0a097e915445b388dbf6 | |
parent | a7110618ff3205e2389768f1c387f263dc0d4da3 (diff) |
Overlay: Outline: Fix unreported feedback loop when smooth wire is disabled
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_outline.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_outline.c b/source/blender/draw/engines/overlay/overlay_outline.c index 0395f6890bd..142421f58d8 100644 --- a/source/blender/draw/engines/overlay/overlay_outline.c +++ b/source/blender/draw/engines/overlay/overlay_outline.c @@ -102,14 +102,18 @@ void OVERLAY_outline_init(OVERLAY_Data *vedata) if (pd->antialiasing.enabled) { GPU_framebuffer_ensure_config(&fbl->outlines_resolve_fb, - {GPU_ATTACHMENT_NONE, - GPU_ATTACHMENT_TEXTURE(txl->overlay_color_tx), - GPU_ATTACHMENT_TEXTURE(txl->overlay_line_tx)}); + { + GPU_ATTACHMENT_NONE, + GPU_ATTACHMENT_TEXTURE(txl->overlay_color_tx), + GPU_ATTACHMENT_TEXTURE(txl->overlay_line_tx), + }); } else { - GPU_framebuffer_ensure_config( - &fbl->outlines_resolve_fb, - {GPU_ATTACHMENT_TEXTURE(txl->temp_depth_tx), GPU_ATTACHMENT_TEXTURE(dtxl->color)}); + GPU_framebuffer_ensure_config(&fbl->outlines_resolve_fb, + { + GPU_ATTACHMENT_NONE, + GPU_ATTACHMENT_TEXTURE(dtxl->color_overlay), + }); } } } |