aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/legacy.c')
-rw-r--r--backend/drm/legacy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/drm/legacy.c b/backend/drm/legacy.c
index 84e8a914..bd8813e8 100644
--- a/backend/drm/legacy.c
+++ b/backend/drm/legacy.c
@@ -115,8 +115,10 @@ static bool legacy_crtc_commit(struct wlr_drm_connector *conn,
}
}
- if ((state->base->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) &&
- drm_connector_supports_vrr(conn)) {
+ if (state->base->committed & WLR_OUTPUT_STATE_ADAPTIVE_SYNC_ENABLED) {
+ if (!drm_connector_supports_vrr(conn)) {
+ return false;
+ }
if (drmModeObjectSetProperty(drm->fd, crtc->id, DRM_MODE_OBJECT_CRTC,
crtc->props.vrr_enabled,
state->base->adaptive_sync_enabled) != 0) {