aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/nvflinger/nvflinger.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-25 18:53:25 -0400
committerLioncash <mathew1800@gmail.com>2020-07-25 19:04:53 -0400
commit5dab23e0171fd9fcb1976ac13e484ee7cf166e29 (patch)
treebbffe822135d0e9578588b01fae8bf807c1cbe3a /src/core/hle/service/nvflinger/nvflinger.cpp
parenta2e1810287b8b7ffead994dcb17e8e0ba6bc0914 (diff)
nvflinger: Use return value of Lock()
comex reported in #4424 that we were incorrectly discarding the return value of Lock() which is correct.
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()};