Browse Source

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

pull/225/head
Gamer64 7 months ago
committed by crueter
parent
commit
0b9201f879
  1. 2
      src/core/hle/service/nvnflinger/hardware_composer.cpp

2
src/core/hle/service/nvnflinger/hardware_composer.cpp

@ -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; });

Loading…
Cancel
Save