aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/nvflinger.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-26 09:19:24 -0700
committerGitHub <noreply@github.com>2020-07-26 09:19:24 -0700
commit08f02836d8c03bfc92797d1df456cdc4a927daa8 (patch)
treea31af6e895acf8cff027a4a0e183965594f98186 /src/core/hle/service/nvflinger/nvflinger.cpp
parent4524e1bd54c965535c387fc79991671176d5708f (diff)
parent7b070bbf62bc42daba7e28b292413ddc2ecf450a (diff)
Merge pull request #4426 from lioncash/lock
nvflinger: Use return value of Lock()
Diffstat (limited to 'src/core/hle/service/nvflinger/nvflinger.cpp')
-rw-r--r--src/core/hle/service/nvflinger/nvflinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/nvflinger.cpp b/src/core/hle/service/nvflinger/nvflinger.cpp
index 789856118..e561bf654 100644
--- a/src/core/hle/service/nvflinger/nvflinger.cpp
+++ b/src/core/hle/service/nvflinger/nvflinger.cpp
@@ -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()};