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.
This commit is contained in:
Thomas Wilshaw
2021-11-02 21:49:14 +00:00
parent be24e7e580
commit ef2b5a7bf8
+3
View File
@@ -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: