[hw_composer]: Only call nvdisp.Composite if there is something to compose

This commit is contained in:
Gamer64 2025-08-07 23:11:17 +02:00 committed by crueter
parent 28b8159da1
commit 0b9201f879
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ u32 HardwareComposer::ComposeLocked(f32* out_speed_scale, Display& display,
}
// If any new buffers were acquired, we can present.
if (has_acquired_buffer) {
if (has_acquired_buffer && !composition_stack.empty()) {
// Sort by Z-index.
std::stable_sort(composition_stack.begin(), composition_stack.end(),
[&](auto& l, auto& r) { return l.z_index < r.z_index; });