Motion Path: Don't blit MSAA buffer if there is no motion paths
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user