Skip to content

Commit

Permalink
Background drawing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darbyjohnston committed Feb 21, 2024
1 parent c3bbb05 commit e3649c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/tlTimelineGL/RenderVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ namespace tl
const timeline::CompareOptions& compareOptions,
const timeline::BackgroundOptions& backgroundOptions)
{
_drawBackground(boxes, backgroundOptions);
//! \todo Render the background only if there is valid video data and a
//! valid layer?
if (!videoData.empty() && !videoData.front().layers.empty())
{
_drawBackground(boxes, backgroundOptions);
}
switch (compareOptions.mode)
{
case timeline::CompareMode::A:
Expand Down

0 comments on commit e3649c8

Please sign in to comment.