nvflinger: Use return value of Lock()

comex reported in #4424 that we were incorrectly discarding the return
value of Lock() which is correct.
This commit is contained in:
Lioncash
2020-07-25 18:53:25 -04:00
parent a2e1810287
commit 5dab23e017
3 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ NVFlinger::NVFlinger(Core::System& system) : system(system) {
// Schedule the screen composition events
composition_event = Core::Timing::CreateEvent(
"ScreenComposition", [this](u64, std::chrono::nanoseconds ns_late) {
Lock();
const auto guard = Lock();
Compose();
const auto ticks = std::chrono::nanoseconds{GetNextTicks()};