diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-07-30 15:18:38 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-07-30 15:18:55 +0300 |
commit | bfaf41663abd929b3756f81f7cbbcb57419d21fd (patch) | |
tree | ebfe6e78de699a13b3be06579fb1fa46eab31b44 /source | |
parent | 6c6ecdd2306b9680ac171b9b80d4a9911fdb8a19 (diff) |
Motion Path: Don't blit MSAA buffer if there is no motion paths
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/draw/intern/draw_anim_viz.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_anim_viz.c b/source/blender/draw/intern/draw_anim_viz.c index 6bf7bf9ca08..f976c7b4d05 100644 --- a/source/blender/draw/intern/draw_anim_viz.c +++ b/source/blender/draw/intern/draw_anim_viz.c @@ -322,6 +322,13 @@ static void MPATH_draw_scene(void *vedata) DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get(); DefaultTextureList *dtxl = DRW_viewport_texture_list_get(); + if (DRW_pass_is_empty(psl->lines) && + DRW_pass_is_empty(psl->points)) + { + /* Nothing to draw. */ + return; + } + MULTISAMPLE_SYNC_ENABLE(dfbl, dtxl) DRW_draw_pass(psl->lines); |