Fix opaque MIDI region rendering

This issue was introduced in e79d8b00f9.
This commit is contained in:
Robin Gareus 2023-06-14 19:42:00 +02:00
parent 6319980746
commit a2975bb4b7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 4 additions and 1 deletions

View File

@ -329,11 +329,14 @@ MidiPlaylist::render (MidiChannelFilter* filter)
for (auto i = ++regs.begin(); i != regs.end(); ++i) {
if ((*i)->opaque ()) {
all_transparent = false;
break;
}
if ((*i)->layer () != layer) {
no_layers = false;
}
if (!all_transparent && !no_layers) {
/* no need to check further */
break;
}
}
Evoral::EventList<samplepos_t> evlist;