From ef2b5a7bf8b8c08f8f5081279c06239bf974706b Mon Sep 17 00:00:00 2001 From: Thomas Wilshaw Date: Wed, 27 Oct 2021 16:53:30 +0100 Subject: [PATCH] traverser: catch jobs with no texture If a job has no texture (e.g. a Solid), force the channel count to at least VideoParams::kRGBChannelCount. --- app/node/traverser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/node/traverser.cpp b/app/node/traverser.cpp index 551e15010..1ff952be2 100644 --- a/app/node/traverser.cpp +++ b/app/node/traverser.cpp @@ -157,6 +157,9 @@ int NodeTraverser::GetChannelCountFromJob(const GenerateJob &job) } } } + if (max_channel_count == 0) { + max_channel_count = VideoParams::kRGBChannelCount; + } switch (job.GetAlphaChannelRequired()) { case GenerateJob::kAlphaForceOn: