backends/drm: properly check for vrr property with legacy

BUG: 445907
master
Xaver Hugl 3 years ago
parent 468acd0cbe
commit 50c39e202b

@ -367,7 +367,7 @@ bool DrmPipeline::applyPendingChangesLegacy()
}
if (pending.active) {
Q_ASSERT(pending.crtc);
if (auto vrr = pending.crtc->getProp(DrmCrtc::PropertyIndex::VrrEnabled); !vrr->setPropertyLegacy(pending.syncMode == RenderLoopPrivate::SyncMode::Adaptive)) {
if (auto vrr = pending.crtc->getProp(DrmCrtc::PropertyIndex::VrrEnabled); vrr && !vrr->setPropertyLegacy(pending.syncMode == RenderLoopPrivate::SyncMode::Adaptive)) {
qCWarning(KWIN_DRM) << "Setting vrr failed!" << strerror(errno);
return false;
}

Loading…
Cancel
Save