Motion Path: Don't blit MSAA buffer if there is no motion paths

This commit is contained in:
Clément Foucault
2018-07-30 14:18:38 +02:00
parent 6c6ecdd230
commit bfaf41663a

View File

@@ -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);