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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user